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

Update MCIMAPSession.cpp #1951

Closed beczesz closed 1 year ago

beczesz commented 1 year ago

Fix issues 1947

Handle the IMAPMessagesRequestKindFullHeaders flag in case of fetching messages by UID

dinhvh commented 1 year ago

Can you add a flag to fetch all the headers? IMAPMessagesRequestKindAllHeaders

and maybe add a comment in the code to describe subtleties of IMAPMessagesRequestKindFullHeaders vs IMAPMessagesRequestKindAllHeaders.

IMAPMessagesRequestKindFullHeaders fetches the non-parsed list of a limited set of headers. IMAPMessagesRequestKindAllHeaders fetches all the non-parsed headers.

beczesz commented 1 year ago

Can you add a flag to fetch all the headers? IMAPMessagesRequestKindAllHeaders

and maybe add a comment in the code to describe subtleties of IMAPMessagesRequestKindFullHeaders vs IMAPMessagesRequestKindAllHeaders.

IMAPMessagesRequestKindFullHeaders fetches the non-parsed list of a limited set of headers. IMAPMessagesRequestKindAllHeaders fetches all the non-parsed headers.

Hi @dinhvh , I added this new flag as you suggested.