Question:
I'm using the library for iOS and I'm facing a problem:
Even using the method of the search or GetAllUids CkoImap in my Gmail account, the result does not bring all emails.
I do not know what to do. I'm doing the looping in all UIDs.
To see exactly what is happening, set the KeepSessionLog property = True/Yes, then examine the contents of the SessionLog property after calling GetAllUids.
You can also get more information by examining the contents of the LastErrorText after calling GetAllUids. To get more information, turn on verbose logging by setting the VerboseLogging property = true/yes beforehand.
In this case, the session log will show exactly what is happening.
Hello Matt,
This is my log. I still do not understand why no one is bringing email. It has to do with this line? Or with the selection of the flags?
* OK [UIDNEXT 2713] Predicted next UID.Thank you.
LOG:
----IMAP REQUEST---- aaae SELECT "INBOX" ----IMAP RESPONSE---- FLAGS (Answered Flagged Draft Deleted Seen schedulePickedDate Junk scheduleType NotJunk $Junk $Forwarded JunkRecorded $NotJunk) OK [PERMANENTFLAGS (Answered Flagged Draft Deleted Seen schedulePickedDate Junk scheduleType NotJunk $Junk $Forwarded JunkRecorded $NotJunk *)] Flags permitted. OK [UIDVALIDITY 671552626] UIDs valid. 9 EXISTS 0 RECENT OK [UIDNEXT 2713] Predicted next UID. aaae OK [READ-WRITE] INBOX selected. (Success) ----IMAP REQUEST---- aaaf UID FETCH 1: (FLAGS) ----IMAP RESPONSE---- 1 FETCH (UID 2607 FLAGS (Seen)) 2 FETCH (UID 2676 FLAGS (NotJunk $NotJunk Seen)) 3 FETCH (UID 2682 FLAGS (NotJunk $NotJunk Seen)) 4 FETCH (UID 2684 FLAGS (NotJunk $NotJunk)) 5 FETCH (UID 2688 FLAGS (NotJunk $NotJunk)) 6 FETCH (UID 2696 FLAGS (Seen)) 7 FETCH (UID 2697 FLAGS (Seen)) 8 FETCH (UID 2699 FLAGS (Seen)) 9 FETCH (UID 2708 FLAGS (Seen)) aaaf OK Success 2013-04-13 10:36:20.167 Youmail[44051:1b03] ChilkatLog: GetAllUids: DllDate: Dec 21 2012 UnlockPrefix:* Username: Rodrigos-MacBook-Pro.local:rjunqueira Architecture: Little Endian; 32-bit Language: IOS Objective-C VerboseLogging: 1 ImapCmdSent: aaaf UID FETCH 1: (FLAGS) getCompleteResponse: ImapCmdResp: * 1 FETCH (UID 2607 FLAGS (Seen)) ImapCmdResp: * 2 FETCH (UID 2676 FLAGS (NotJunk $NotJunk Seen)) ImapCmdResp: * 3 FETCH (UID 2682 FLAGS (NotJunk $NotJunk Seen)) ImapCmdResp: * 4 FETCH (UID 2684 FLAGS (NotJunk $NotJunk)) ImapCmdResp: * 5 FETCH (UID 2688 FLAGS (NotJunk $NotJunk)) ImapCmdResp: * 6 FETCH (UID 2696 FLAGS (Seen)) ImapCmdResp: * 7 FETCH (UID 2697 FLAGS (Seen)) ImapCmdResp: * 8 FETCH (UID 2699 FLAGS (Seen)) ImapCmdResp: * 9 FETCH (UID 2708 FLAGS (Seen)) ImapCmdResp: aaaf OK Success --getCompleteResponse numMessages: 9 --GetAllUids --ChilkatLog
The log shows that all of the UID's are being returned. My guess is that your impression of what's actually in the INBOX on the server is not correct. See the following Chilkat blog posts about GMail: