]> code.delx.au - offlineimap/commit
Additional date validity check
authorJohn Goerzen <jgoerzen@complete.org>
Wed, 1 Aug 2007 01:25:05 +0000 (02:25 +0100)
committerJohn Goerzen <jgoerzen@complete.org>
Wed, 1 Aug 2007 01:25:05 +0000 (02:25 +0100)
commit2323fdcdb39481aeec7e3df48f5dfd1cb2e13608
treedc8cbe4981d7e3c536009197d51d1ace2312ab60
parentf230590e0864f17ed21e0b37501c90704b22bb82
Additional date validity check

patch from Mike Gerber

Two times today I have found my offlineimap to have died with this same
situation. It appears as if certain types of messages (both spam in my
situation), cause offlineimap to choke. When it does it cannot proceed.
This means that when I run offlineimap, it pulls in messages from some
folders, then it hits the folder with the bad message and dies, leaving
undownloaded mail on the server. The only fix to this problem is to find
the problem message on the server and remove it by hand. This isn't such
a huge deal for me, since I run the server, but other people have to
come to me to ask me to delete these messages, and until I do they
cannot download their email.

I have captured the output by running script during one of these
incidents, this has been attached. Additionally, I have also attach the
problematic message.

The patch seems to work for me, might need some Python wizard and better
testing, though.

fixes deb#396443
offlineimap/folder/IMAP.py