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)
> After, like this; the semicolon of the micalg attribute should be
> outside the quotes.
-- Bjarni R. Einarsson PGP: 02764305, B7A3AB89 email@example.com -><- http://bre.klaki.net/
Check out my open-source email sanitizer: http://mailtools.anomy.net/ Spammers, please send plenty of email to: firstname.lastname@example.org