I use the method below to receive INBOX emails;
[self.imapSession fetchMessagesByNumberOperationWithFolder:inboxFolder requestKind:requestKind numbers:[MCOIndexSet indexSetWithRange:fetchRange]]
and get all emails successfully, but when I try to get Sent Mails, it shows the following error in the log
2015-04-21 18: 13: 23.961 TestMailCore [10138: 212892] Progress: 1 out of 10 2015-04-21 18: 13: 23.962 TestMailCore [10138: 212892] Progress: 2 out of 10 2015-04-21 18: 13 : 23.962 TestMailCore [10138: 212892] Progress: 3 out of 10 2015-04-21 18: 13: 24.189 TestMailCore [10138: 212892] Progress: 4 out of 10 2015-04-21 18: 13: 24.190 TestMailCore [10138: 212892] Progress: 5 out of 10 2015-04-21 18: 13: 24.191 TestMailCore [10138: 212892] Progress: 6 out of 10 2015-04-21 18: 13: 24.191 TestMailCore [10138: 212892] Progress: 7 out of 10 2015-04 -21 18: 13: 24.192 TestMailCore [10138: 212892] Progress: 8 out of 10 2015-04-21 18: 13: 24.193 TestMailCore [10138: 212892] Progress: 9 out of 10 2015-04-21 18: 13: 24.194 TestMailCore [10138: 212892] delivered all messages. Error Domain = MCOErrorDomain Code = 19 "An error occurred while receiving messages in the requested folder. "UserInfo = 0x7fee934ee710 {NSLocalizedDescription = An error occurred while receiving messages in the requested folder.}