Date header splitting

From: Joerg Lenneis (
Date: Thu 11 Apr 2002 - 21:06:38 UTC

  • Next message: Bjarni R. Einarsson: "Re: Date header splitting"

    Dear all,

    Here is a perfectly innocent (and I think probably valid) Date: header

    Date: Wed, 10 Apr 2002 17:05:34 +0200 (METDST)

    The timezone "(METDST)" specification is somewhat long, though which
    causes this line line to fall foul of the check in line 1504 in the
    file (Version 1.49 of Anomy):

    if ($writer->{"rawheader"} =~ s/(Date:\s*[^\012]{40,40})([^\012]+)/ ....

    Would it be possible to increase the constant "{40,40}" by a couple of
    bytes (one is actually enough to cover the case above) without causing
    problems elsewhere? Or would this make the Outlook Date: header
    overflow possible (could not really happen, could it)?

    best regards,


    Joerg Lenneis

    hosted by