Problem syncing mail - crash

Knut Anders Hatlen knut.hatlen at oracle.com
Thu Jul 21 14:29:11 UTC 2011


Vladimir Marek <Vladimir.Marek at Oracle.COM> writes:

>> - fix that X-OfflineIMAP header is set correctly and try if that helped
>
> I tried
>
> diff --git a/offlineimap/folder/IMAP.py b/offlineimap/folder/IMAP.py
> index 9297a7b..19a0340 100644
> --- a/offlineimap/folder/IMAP.py
> +++ b/offlineimap/folder/IMAP.py
> @@ -276,7 +276,7 @@ class IMAPFolder(BaseFolder):
>          self.ui.debug('imap',
>                   'savemessage_addheader: called to add %s: %s' % (headername,
>                                                                    headervalue))
> -        insertionpoint = content.find("\r\n")
> +        insertionpoint = content.find("\r\n\r\n")
>          self.ui.debug('imap', 'savemessage_addheader: insertionpoint = %d' % insertionpoint)
>          leader = content[0:insertionpoint]
>          self.ui.debug('imap', 'savemessage_addheader: leader = %s' % repr(leader))
>
> which makes the X-OfflineIMAP header to be written to the end of mail header
> block. But it didn't fix the problem,

Thanks for trying it out. It's probably still worthwhile fixing it,
though, since it may end up garbling a more important header than
Received.

> If I would know git, I'll try to run diff between the two branches :)

git log v6.3.2.1..next
git diff v6.3.2.1..next

:)

-- 
Knut Anders




More information about the OfflineIMAP-project mailing list