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.59k stars 623 forks source link

[Bug] - MCOIMAPFolderFlag sometimes returns wrong value for trash(deleted folder) with outlook #1923

Open caglayansever opened 2 years ago

caglayansever commented 2 years ago

Summary We call MCOIMAPFetchFoldersOperation to fetch all folders. Outlook supports folder flags to identify. Sometimes trash folder flag returns wrong value.

Platform(s)

iOS

Happens on Mail Server

Outlook

Piece of code

            /// Servers which have flag support:
            switch imapFolder.flags {
            ....
            case .trash:
                folder.id = FolderId.trash.raw
            ....
            default:
                /// Folder Flag not supported or custom folder

We can identify Deleted(trash) folder with checking imapFolder.flags == .trash but sometimes Deleted folder returns ▿ MCOIMAPFolderFlag