[Mailman-Users] "OverflowError: long int too large to convertto int"

Mark Sapiro msapiro at value.net
Thu Sep 8 02:28:43 CEST 2005


Tokio Kikuchi wrote:

>Marcel Meyer wrote:
>
>> Some lists are no longer (worked before - no configuration or software
>> update occured) delivered. All messages are shunted. The errorlog says
>> the following:
>> 
>> ****************************************
>> [...]
>> OverflowError: long int too large to convert to int
>> 
>
>>   File "/usr/local/mailman/Mailman/Handlers/Scrubber.py", line 131, in calculate_attachments_dir
>>     datedir = safe_strftime(fmt, now)
>>   File "/usr/local/mailman/Mailman/Handlers/Scrubber.py", line 115, in safe_strftime
>>     return time.strftime(fmt, floatsecs)
>> OverflowError: long int too large to convert to int
>
>Looks like we need this patch:
>
>Index: Scrubber.py
>===================================================================
>RCS file: /cvsroot/mailman/mailman/Mailman/Handlers/Scrubber.py,v
>retrieving revision 2.27
>diff -u -r2.27 Scrubber.py
>--- Scrubber.py 28 Aug 2005 05:31:27 -0000      2.27
>+++ Scrubber.py 7 Sep 2005 23:40:33 -0000
>@@ -113,7 +113,7 @@
> def safe_strftime(fmt, floatsecs):
>     try:
>         return time.strftime(fmt, floatsecs)
>-    except (TypeError, ValueError):
>+    except (TypeError, ValueError, OverflowError):
>         return None
>

As Tokio says, I think the patch will fix this, but I think the
underlying cause may be a message in the lists/<listname>/digest.mbox
file with a bad date or date format in it's Date: header.

Editing this or moving the digest.mbox aside may allow the list to
resume processing and then 'bin/unshunt' will reprocess the shunted
messages.

--
Mark Sapiro <msapiro at value.net>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan




More information about the Mailman-Users mailing list