[offlineimap] sending internal date with incorrect timezone (#186)
Nicolas Sebrecht
notifications at github.com
Mon Mar 30 20:26:42 BST 2015
Here is how it works. The code is really straightforward in this area. ;-)
Pushing a mail on remote IMAP is called "APPEND". This is done in the [savemessage() method](https://github.com/OfflineIMAP/offlineimap/blob/next/offlineimap/folder/IMAP.py#L498).
This method applies the date as returned by the [__getmessageinternaldate() method](https://github.com/OfflineIMAP/offlineimap/blob/next/offlineimap/folder/IMAP.py#L422).
The local Maildir does NOT have real INTERNALDATE (as defined by IMAP standard). We fake it with the values taken from the `rtime` parameter (coming from [getmessagetime()](https://github.com/OfflineIMAP/offlineimap/blob/next/offlineimap/folder/Maildir.py#L243), the modification time of the file) and fallback to the header if it looks wrong.
I'm giving you the details because you might want to insert debug `print` statements to get where it might fail. The comments in the code are helpfull.
---
Reply to this email directly or view it on GitHub:
https://github.com/OfflineIMAP/offlineimap/issues/186#issuecomment-87799438
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20150330/78bc5e90/attachment-0003.html>
More information about the OfflineIMAP-project
mailing list