Problem with copying message to the server

Sebastian Spaeth Sebastian at SSpaeth.de
Thu Jan 27 13:50:07 GMT 2011


Hi Jiri,
greetings from another ETH building in Z├╝rich :).

On 27 Jan 2011, Jiri Cerny wrote:
> You are right, I did not remark this localised date. I tried first the
> simpler solution: 
> LANG=C offlineimap 
> and the synchronisation went smoothly.
> 
> So I know how to workaround my problem for the moment, and it should be trivial
> to fix the offlineimap too. 


Perhaps, perhaps not. We shouldn't hand in localized dates there for
sure. 

But the bug is not ours. The issue is that imaplib's Time2Internaldate()
returns a localized string which it hands to the IMAP server. This is a
bug with their implementation and I filed
http://bugs.python.org/issue11024 to have that recorded.

Still, we will need to fix that probably ourselves, as we want to
continue working on current python versions. I wonder why we were not
seeing this issue more often and I wonder what other IMAP servers do
with localized dates.

I wonder what would happen if we set the time formatting locale when
starting offlineimap. Would that break anything else of importance?

It could be as simple as a:

locale.setlocale(locale.LC_TIME, '')

What do others think?

I created a ticket for this on my private offlineimap issue tracker at:
http://trac.sspaeth.de/issue10

Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20110127/e6fe3a2d/attachment-0001.sig>


More information about the OfflineIMAP-project mailing list