karastojko / mailio

mailio is a cross platform C++ library for MIME format and SMTP, POP3 and IMAP protocols. It is based on standard C++ 17 and Boost library.
Other
372 stars 98 forks source link

imap flags #174

Open fszontagh opened 4 weeks ago

fszontagh commented 4 weeks ago

I added a new fetch_flags method to the imap class, specifically for retrieving only the IMAP flags of messages. Additionally, I modified the original fetch method so that it now requests the flags from the server when fetching the message. I added a std::vector element called flags that stores the flags received from the server in their original format (e.g., \Seen). This implementation also supports custom flags.

karastojko commented 3 weeks ago

Hey, thanks for the contribution. That was also on my agenda to add it. Please be patient for merging this PR. I have IMAP tests for various functionalities but they are not public. Since I am doing refactoring regarding line policy, folding and related stuff, I cannot immediately take a look of your PR.