MailCore / mailcore2

MailCore 2 provide a simple and asynchronous API to work with e-mail protocols IMAP, POP and SMTP. The API has been redesigned from ground up.
Other
2.6k stars 625 forks source link

MCOIMAPFolderStatusOperation Crashed with QQ mail #1692

Open BlueHoopor opened 6 years ago

BlueHoopor commented 6 years ago

MailCore2 crashed during this call (from the mainthread), with QQ email address:

MCOIMAPFolderStatusOperation *folderStatus = [self.imapSession folderStatusOperation:folder];
    [folderStatus start:^(NSError * _Nullable error, MCOIMAPFolderStatus * _Nullable status) {
        if (error){
            NSLog(@"Fail to get %@ status =====> %@",folder,error);
            if(failure){
                failure(error);
            }
        }else{
            NSLog(@"Success to get %@ status",folder);
            if (success) {
                success(status);
            }
        }
    }];

111

BlueHoopor commented 6 years ago

here is the connection log:

2017-12-01 17:41:04.518 xxx[14528:559087] Success to get Junk status
2017-12-01 17:41:04.520 xxx[14528:559194] 7 STATUS "&UXZO1mWHTvZZOQ-" (UNSEEN MESSAGES RECENT UIDNEXT UIDVALIDITY)
2017-12-01 17:41:04.522 xxx[14528:559195] 7 STATUS INBOX (UNSEEN MESSAGES RECENT UIDNEXT UIDVALIDITY)
2017-12-01 17:41:04.555 xxx[14528:559196] * STATUS "Sent Messages" (UNSEEN 0 MESSAGES 3 RECENT 0 UIDNEXT 49 UIDVALIDITY 1511411714)
6 OK STATUS completed
2017-12-01 17:41:04.556 xxx[14528:559087] Success to get Sent Messages status
2017-12-01 17:41:04.560 xxx[14528:559196] 7 STATUS Junk (UNSEEN MESSAGES RECENT UIDNEXT UIDVALIDITY)
2017-12-01 17:41:04.572 xxx[14528:559194] * STATUS &UXZO1mWHTvZZOQ- ()
7 OK STATUS completed
xxx was compiled with optimization - stepping may behave oddly; variables may not be available.

seems the last folder's status is empty? then it crashed?

caozhiyong commented 6 years ago

did you solve it? How?

junxianmu commented 4 years ago

@jeancky did you solve it? How?