Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIdIMAP4.SendCmd
#1
Dear All; here's an easy one:
trying to SearchMailBox like this:
Code:
TIdIMAP4SearchRec sr;
::ZeroMemory(&sr, sizeof(sr));
sr.Date = TDateTime::CurrentDate()-2;
sr.SearchKey = skSince;
if(IdIMAP4->SearchMailBox(&sr, 0)){
  //...
}
and this is what the log.file shows:
Code:
...
C4 OK [READ-ONLY] Inbox selected. (Success)<EOL>
C5 SEARCH SINCE  8-JUL-2018<EOL>
C5 BAD Could not parse command<EOL>
...
I bet I've seen similar topics back when Borland news groups were alive; so what's wrong with my code?
Should I use IdIMAP4->SendCmd() directly? I would if I knew its proper syntax. Thanks in advance.
Reply


Messages In This Thread
TIdIMAP4.SendCmd - by Boba TC - 07-11-2018, 04:22 AM
RE: TIdIMAP4.SendCmd - by rlebeau - 07-11-2018, 07:46 PM
RE: TIdIMAP4.SendCmd - by Boba TC - 07-18-2018, 02:27 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)