Bas Tossings

Results 7 comments of Bas Tossings

![image](https://user-images.githubusercontent.com/12195470/134961996-3cff9555-78ac-4050-be75-0e98dac4e370.png)

Ok, some progress. I'm now looking at `mailimap_msg_att_parse_progress` where it tries to parse the message after the message sequence number and FETCH identifier (`* 7027 FETCH`) have been successfully parsed....

And more progress: it seems to choke on an `ENVELOPE`'s messageid containing quotes: `""` `mailimap_env_message_id_parse` uses `mailimap_nstring_parse` which encounters the first `"` after the string opens and concludes that that...

Looking at the RFC, the formal syntax does not seem to allow DQUOTE's in the envelope messageid (except when properly escaped, which in this case, they are not): ``` env-message-id...

@dinhvh if you could add me as a contributor I can make a PR with a workaround

FYI: I have also created an issue on Apple’s developer site since it’s an iCloud issue and eventually, Apple should fix it on their side: [iCloud IMAP server bug](https://developer.apple.com/forums/thread/724704)

Hey @dsanghan, the fix consists of a number of changes in "src/low-level/imap/mailimap_parser.c". I'd rather just push my branch but here it is anyways: [mailimap_parser.zip](https://github.com/dinhvh/libetpan/files/11743893/mailimap_parser.zip)