[offlineimap] OverflowError: Python int too large to convert to C long (#231)

Nicolas Sebrecht notifications at github.com
Thu Aug 27 21:48:37 BST 2015


On Thu, Aug 27, 2015 at 12:31:53PM -0700, Martin Carpella wrote:
>    Issue is caused by utime_from_header = yes for the local repository and
>    a SPAM message that is quite far in the future, exceeding int32 as
>    timestamp.
> 
>    The message's date header is:
> Date: Thu, 03 Sep 3610 21:32:03 +0300
> 
>    Maybe a check should be added if the date is that far in the future and
>    set to native C's long max-value (depending if i386 or amd64).

Aargh. This should be a rare case. I think it would be better to just
discard the offending mail and notice the user. Playing with data type
is annoying, code intrusive and prone to errors.

Patches welcome.

>>    Reply to this email directly or [1]view it on GitHub.
> 
> References
> 
>    1. https://github.com/OfflineIMAP/offlineimap/issues/231#issuecomment-135530756

-- 
Nicolas Sebrecht


---
Reply to this email directly or view it on GitHub:
https://github.com/OfflineIMAP/offlineimap/issues/231#issuecomment-135551349
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20150827/97f8be66/attachment-0003.html>


More information about the OfflineIMAP-project mailing list