View | Details | Raw Unified | Return to bug 8591
Collapse All | Expand All

(-)mailman-2.1.5/Mailman/Queue/ArchRunner.py.date_overflows (-1 / +1 lines)
Lines 49-55 Link Here
49
                elif abs(now - mktime_tz(tup)) > \
49
                elif abs(now - mktime_tz(tup)) > \
50
                         mm_cfg.ARCHIVER_ALLOWABLE_SANE_DATE_SKEW:
50
                         mm_cfg.ARCHIVER_ALLOWABLE_SANE_DATE_SKEW:
51
                    clobber = 1
51
                    clobber = 1
52
            except ValueError:
52
            except (OverflowError, ValueError):
53
                # The likely cause of this is that the year in the Date: field
53
                # The likely cause of this is that the year in the Date: field
54
                # is horribly incorrect, e.g. (from SF bug # 571634):
54
                # is horribly incorrect, e.g. (from SF bug # 571634):
55
                # Date: Tue, 18 Jun 0102 05:12:09 +0500
55
                # Date: Tue, 18 Jun 0102 05:12:09 +0500
(-)mailman-2.1.5/Mailman/Handlers/Scrubber.py.date_overflows (-2 / +2 lines)
Lines 113-119 Link Here
113
def safe_strftime(fmt, floatsecs):
113
def safe_strftime(fmt, floatsecs):
114
    try:
114
    try:
115
        return time.strftime(fmt, floatsecs)
115
        return time.strftime(fmt, floatsecs)
116
    except (TypeError, ValueError):
116
    except (OverflowError, TypeError, ValueError):
117
        return None
117
        return None
118
118
119
119
Lines 142-148 Link Here
142
                     }.get(parts[3], 0)
142
                     }.get(parts[3], 0)
143
            day = int(parts[4])
143
            day = int(parts[4])
144
            year = int(parts[6])
144
            year = int(parts[6])
145
        except (IndexError, ValueError):
145
        except (OverflowError, IndexError, ValueError):
146
            # Best we can do I think
146
            # Best we can do I think
147
            month = day = year = 0
147
            month = day = year = 0
148
        datedir = '%04d%02d%02d' % (year, month, day)
148
        datedir = '%04d%02d%02d' % (year, month, day)

Return to bug 8591