Hi,
I've had some imapfilter crashes related to bad dates. From what I can
found it resembles of [890645], but appears when saving (appending) the
mail.
I'm not sure whatever this should be considered a bug or not, or where
it's best fixed (in imaplib or spambayes)...
Anyway, by catching the execption raised from the append call it works
fine (given my setup, spambayes-1.0.3 & python-2.3.5). So here's my
"fix":
[EMAIL PROTECTED]:proj/SPAMBAYES> diff sb_imapfilter.py.ORG sb_imapfilter.py
522,525c522,529
< response = imap.append(self.folder.name, flgs, tme,
< self.as_string())
< if response[0] == "OK":
< break
---
> # Catch exceptions that may occure if msg_time is realy
> # bad (I got one like "19-Jan-2038 04:10:47 +0100").
> # Just pass the exceptions, and the loop will try again,
> # eventualy with an desent time.
> try:
> response = imap.append(self.folder.name, flgs, tme,
> self.as_string())
> except IMAP4.error:
> pass
> else:
> if response[0] == "OK":
> break
Should I report this as a bug (including the suggested fix), or can I
just post it here and some "real" developer will catch it?
I'm not familiar with the normal bug tracking procedure, so please help
me out or point me in the right direction.
Sincerely yours,
Emil
_______________________________________________
spambayes-dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/spambayes-dev