Florian Lombard
2017-04-24 13:20:45 UTC
Hi all,
Here are the patch I worked on when having sync issues with Exchange
(online).
Exchange is very picky with messages, rejecting messages with too long
lines or binary content without explicit error messages.
All my additions are not enabled by default (ie. defaulting to normal
mbsync behaviour)
Common cfg section:
* Either skip or fix messages with lines more than xxx bytes
(typically no more than 9900 bytes with exchange)
MaxLineLength xxx (in bytes)
CutLongLines yes|no (fix or skip message)
* Allow to rescan all mails from a folder, ignoring the last sync
latest message pulled (usefull when playing with my new settings)
IgnoreMaxPulledUid yes|no
* Skip messages with raw binary content (bytes < 0x20 except CR/LF/TAB)
SkipBinaryContent yes|no
* Allow to delete non empty folders on slave (when you are sure about
what you're doing)
DeleteNonEmpty yes|no
Drivers cfg section (imap only):
* Suppress Keyword not supported warnings
IgnoreKeywordWarnings yes|no
Those patches have been extensively tested by myself with a hundred
mailboxes migration from xxx to exchange online via imap.
Patch is against 77acc268123b8233843ca9bc3dcf90669efde08f
The only missing part is long lines cutting when there's CR/LF
convertion (I don't use maildir++)
Regards,
F.LOMBARD.
Here are the patch I worked on when having sync issues with Exchange
(online).
Exchange is very picky with messages, rejecting messages with too long
lines or binary content without explicit error messages.
All my additions are not enabled by default (ie. defaulting to normal
mbsync behaviour)
Common cfg section:
* Either skip or fix messages with lines more than xxx bytes
(typically no more than 9900 bytes with exchange)
MaxLineLength xxx (in bytes)
CutLongLines yes|no (fix or skip message)
* Allow to rescan all mails from a folder, ignoring the last sync
latest message pulled (usefull when playing with my new settings)
IgnoreMaxPulledUid yes|no
* Skip messages with raw binary content (bytes < 0x20 except CR/LF/TAB)
SkipBinaryContent yes|no
* Allow to delete non empty folders on slave (when you are sure about
what you're doing)
DeleteNonEmpty yes|no
Drivers cfg section (imap only):
* Suppress Keyword not supported warnings
IgnoreKeywordWarnings yes|no
Those patches have been extensively tested by myself with a hundred
mailboxes migration from xxx to exchange online via imap.
Patch is against 77acc268123b8233843ca9bc3dcf90669efde08f
The only missing part is long lines cutting when there's CR/LF
convertion (I don't use maildir++)
Regards,
F.LOMBARD.