> >   http://www.ijs.si/software/amavisd/amavisd-new-2.4.0-pre7.tar.gz
> Holy shit! What is this?
>
> # /usr/sbin/amavisd.new
> MIME::Entity 5.419 breaks quoted-printable encoding, please upgrade to
> 5.420 or later (or use 5.418) at /usr/sbin/amavisd.new line 8768.
>
> But a CPAN search yields no 5.420 version:
> http://search.cpan.org/dist/MIME-tools/lib/MIME/Entity.pm

I invented 5.420  :)

The longer story is: 5.418 is fine, the 5.419 added some features
(not needed by amavisd-new), but broke how delivery status notification
is encoded as a quoted-printable text, yielding it as one looong line
under MS Outlook (Express?). I reported the problem to the maintainer
of MIME::Tools and got an express patch fixing the problem almost
instantly. So I assume the fix is in the current code and will
see its day when a next version of MIME-Tools is released.

Anyway, here is a mail with a patch to 5.419 from the hand
of David F. Skoll.  Fixing that one line and bumping the $VERSION
in MIME/Entity.pm to 5.420 fixes the problem and makes it work with
amavisd-new-2.4.0 (and with 2.3.3, which just doesn't notice the problem,
but it exists nevertheless). I guess I'll have to remind David that
we are eagerly awaiting the fixed official version. 


| Hi, Mark.
| Argh.. sorry about that.  You are right; 5.419 introduced a regression.
| The following patch against MIME::Tools 5.419 should fix it.
| Regards,
| David.

--- Entity.pm   2005/12/22 14:56:59     1.15
+++ Entity.pm   2006/02/14 16:28:43     1.16
@@ -1857,7 +1857,7 @@
       my $encoding = ($self->head->mime_encoding || 'binary');
       my $decoder = best MIME::Decoder $encoding;
       $decoder->head($self->head);      ### associate with head, if any
-      $decoder->encode($IO, $out)   || return error "encoding failed";
+      $decoder->encode($IO, $out, textual_type($self->head->mime_type) ? 1 : 
0)   || return error "encoding failed";
     }
 
     $IO->close;
@@ -2242,7 +2242,7 @@
 
 =head1 VERSION
 
-$Revision: 1.15 $ $Date: 2005/12/22 14:56:59 $
+$Revision: 1.16 $ $Date: 2006/02/14 16:28:43 $
 
 =cut
 


Mark


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to