07-11-2018, 04:22 AM
Dear All; here's an easy one:
trying to SearchMailBox like this:
and this is what the log.file shows:
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.
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)){
//...
}
Code:
...
C4 OK [READ-ONLY] Inbox selected. (Success)<EOL>
C5 SEARCH SINCE 8-JUL-2018<EOL>
C5 BAD Could not parse command<EOL>
...
Should I use IdIMAP4->SendCmd() directly? I would if I knew its proper syntax. Thanks in advance.