Archived Forum Post

Index of archived forum posts


Unknown error with certain email only

Sep 02 '14 at 17:01

I get the following error when I retrieve A CERTAIN EMAIL ONLY, no other email, they all work just fine.

I want to know if someone knows this error so that I can fix my code to prevent it from happening to users that will using the app, please.

Here is the raw email:


    DllDate: Jun 23 2014
    UnlockPrefix: ##############
    Architecture: Little Endian; 64-bit
    Language: IOS Objective-C
    VerboseLogging: 0
    msgId: 112
    bUid: 1
    autoDownloadAttachments: 0
        autoDownloadAttachments: 0
              Failed to find first open paren in IMAP FETCH response.
              imapResponse: aaam OK Success

            Parse summary failed.
          Failed to fetch message summary (UID BODYSTRUCTURE)

Accepted Answer

Thanks! Unfortunately, the raw MIME of the email doesn't help solve the problem. The issue is in the format of the BODYSTRUCTURE returned by the IMAP server. The only efficient way to solve this problem is if you can provide a temporary test IMAP account on that server with the given email in the INBOX. A different IMAP server would likely send a different BODYSTRUCTURE (also valid and conforming to the IMAP standards). If you can, please send information through private email to I believe it can be quickly sorted out.


The error was by getting the emails by UID and not sequence numbers. So this popped up when there wasnt such bUID email.

int numMessages = [[self NumMessages] intValue];

CkoEmail *newestEmail;
for (int emailNum = numMessages; emailNum > 0; emailNum--) {
    newestEmail = [self FetchSingle: [NSNumber numberWithInt:emailNum] bUid:YES];
    if (!(newestEmail == nil )) {
        NSLog(@"FromAddress: %@ Subject: %@", newestEmail.FromAddress, newestEmail.Subject);

The fix: newestEmail = [self FetchSingle: [NSNumber numberWithInt:emailNum] bUid:NO];