anomy-list

Annoucing sanitizer.pl, revision 1.57 (was Re: filename parsing issue)

From: Bjarni R. Einarsson (64270@xyz.molar.is)
Date: Thu 14 Nov 2002 - 16:55:19 GMT

  • Next message: 64485@xyz.molar.is: "Mime info in email body"

    Hi everyone,

    I've just uploaded revision 1.57, which deals with both of the issues
    discussed below. There were no other major changes.

    Thanks for the reports guys. :-)

    Get the new revision from the usual place: http://mailtools.anomy.net/

    On 2002-11-14, 17:09:58 (+0100), Tom Vandepoel wrote:
    > > I've seen there's a fix for this in anomy-1.56, so I tested it.
    > > Anomy does fix the incorrect mime header when the "name=" on a seperate
    > > line, but it still doesn't see the right name when all of this is on the
    > > same line, e.g.:
    > >
    > > Content-Type: audio/x-midi; name=hi.gif blah.scr
    > >
    > > Maybe the regexp needs to be massaged a bit?
    >
    > Worse, I've noticed that the regexp in question;
    >
    > # Detect stupid "name=file with spaces.exe" attributes as sent by
    > # many massmailer viruses.
    > $line =~ s/^(\s*[^\s\=]+=)([^\"\=\;]+\S)(\s*)$/$1"$2"$3/gm;
    >
    > actually corrupts the mime headers on signed mail:
    ...
    > Before the RE, it looks like this (added some debugging statements to
    > see this)
    > multipart/signed;
    > protocol="application/x-pkcs7-signature";
    > micalg=sha1;
    > boundary=-------z26398_boundary_sign
    >
    > After, like this; the semicolon of the micalg attribute should be
    > outside the quotes.
    >
    > multipart/signed;
    > protocol="application/x-pkcs7-signature";
    > micalg="sha1;"
    > boundary="-------z26398_boundary_sign"

    -- 
    Bjarni R. Einarsson                           PGP: 02764305, B7A3AB89
     64270@xyz.molar.is                -><-              http://bre.klaki.net/
    

    Check out my open-source email sanitizer: http://mailtools.anomy.net/ Spammers, please send plenty of email to: 64450@xyz.molar.is



    hosted by molar.is