Github issue not visible to anyone else but me

Byron Dandes byron.dandes24 at inbox.eu
Sun Dec 29 16:12:47 GMT 2024


Hi, I posted an issue report on github but github shadowbans issue reports so it is not visible to anyone else but me. This is the issue report, maybe it's possible for the repository owner to make it public somehow. https://github.com/OfflineIMAP/offlineimap3/issues/212 In any case, this is the content of the issue report: 
debian 12
offlineimap v8.0.0, imaplib2 v3.06, Python v3.12.8, OpenSSL 3.3.2 3 Sep 2024

How do I make offlineimap3 download bit-identical messages, exactly as they are on the server?

Currently, when offlineimap3 downloads a message, it modifies it in various ways, such as by adding trailing whitespace after some colon characters, or by adding an empty line between some MIME borders, or by unsplitting some headers and their values.

This breaks things like DKIM signatures.

I need offlineimap3 to download *exactly* what is on the imap server, as if I used rsync or curl.

To give an example of the issues:

offlineimap3 turns this:
```
--0000000000001234567890123456--
--000000000000abcdefghijklmnop
```
into
```
--0000000000001234567890123456--

--000000000000abcdefghijklmnop
```

notice the empty line added, which breaks DKIM.

Or it turns this:
```
Message-ID: 
 <1111111111111111111111111111111111111111111111111111.2222222.PROD.OUTLOOK.COM>
```
into
```
Message-ID: <1111111111111111111111111111111111111111111111111111.2222222.PROD.OUTLOOK.COM>
```

notice that it removed the line break.

Or it turns this:
```
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
```
into
```
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
```

it adds a trailing whitespace after the : for some unknown reason.

Or it turns CRLF into LF, the mail files are stored as CRLF on the server but offlineimap turns them into LF. However this one is trivial to fix afterwards, so it's not a big deal. `curl` does however preserve the emails as-is.

Please help. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20241229/06bf4273/attachment.htm>


More information about the OfflineIMAP-project mailing list