nicm / fdm

fdm source code
269 stars 50 forks source link

Allow saving messages to Apple iCloud via IMAP #79

Closed irdc closed 4 years ago

irdc commented 4 years ago

Hi.

These two changes allow fdm to save messages to iCloud via IMAP.

The first (9bce005) appears to address a bug in fdm itself. A message is to be terminated by a CRLF-pair, which must be accounted for by subtracting both the CR and LF from the message length. Only subtracting one character works fine with Dovecot, probably due to its forgiving nature, but iCloud's IMAP implementation is not as benign.

The second (14c04ba) mirrors those recently made in imap-common.c (17852bb), in that it deals with the fact that iCloud's IMAP implementation has never even heard of string continuations when it comes to mailbox names.

Kind regards, Willemijn Coene

nicm commented 4 years ago

Great stuff, applied now, thanks!