anomy-bugs

[PATCH] Boundary String Error

From: Michael Kellen (03016@xyz.molar.is)
Date: Fös 15 Des 2000 - 20:25:52 UTC


        -- 8< -- inline --

Anomy (1.33<=) breaks many MIME multipart messages by incorrectly
trying to DecodeHeader() on the boundary string. This leads to
a rewritten boundary string which does not match the one used in
the body of the message. mutt deals just fine, Netscape/Mozilla
refuse to display it without View->source and it disappears in
Outlook never to be seen again. In specific, we have seen the
case of MIME boundaries with text in parentheses in them being
incorrectly interpreted as RFC822 comments. Eudora creates such
messages.

Here's a patch [attached].

Michael Kellen

        -- 8< -- attachment; filename="ANOMY.patch" --
*** bin/Anomy/MIMEStream.pm Wed Nov 29 20:29:48 2000
--- bin/Anomy/MIMEStream.pm Wed Dec 13 12:41:26 2000
***************
*** 373,379 ****
          {
                  my ($field, $data) = ($1, $2);
                  $data =~ s/^\"(.*)\"$/$1/s;
! $reader->{"mime"}->{lc($field)} = $reader->DecodeHeader($data);
                  $reader->{"mime-headers"}->{$header} .= lc($field) . " ";
          }
  }
--- 373,388 ----
          {
                  my ($field, $data) = ($1, $2);
                  $data =~ s/^\"(.*)\"$/$1/s;
!
! if ($field =~ /boundary/i)
! {
! $reader->{"mime"}->{lc($field)} = $data;
! }
! else
! {
! $reader->{"mime"}->{lc($field)} = $reader->DecodeHeader($data);
! }
!
                  $reader->{"mime-headers"}->{$header} .= lc($field) . " ";
          }
  }

-- 
This mailing list's home page is: http://mailtools.anomy.net/archives/anomy-bugs/
There you can find subscription instructions and possibly an archive.
Molar.is is a free Icelandic mailing list service.



hosted by molar.is