Open fszontagh opened 4 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.
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.