cvs commit: ports/mail/p5-MIME-Tools/files
patch-Decoder-qpdecode-pdf
Mathieu Arnold
mat at FreeBSD.org
Mon Sep 6 23:34:16 PDT 2004
+-Le 04/09/2004 00:57 +0200, Martin Blapp a dit :
|
| Hi,
|
|> Log:
|> Add fix/workaround for corrupted PDF files attached as
|> quoted-printable encoded MIME attachments by some popular
|> email-client versions on windows.
|>
|> Revision Changes Path
|> 1.1 +41 -0
|> ports/mail/p5-MIME-Tools/files/patch-Decoder-qpdecode-pdf (new)
|>
|
| The bad hacks in mailscanner and anomy-sanitizer should be removed since
| they break PDFs generated on UNIX. Both ports do the same: They convert
| all /n to /r/n which does break a lot of files.
This patch also breaks decoding for everything that is not a bad pdf file.
Could you unbreak it and commit this :
--- files/patch-Decoder-qpdecode-pdf Tue Sep 7 08:32:39 2004
+++ files/patch-Decoder-qpdecode-pdf~ Tue Sep 7 08:32:25 2004
@@ -34,7 +34,7 @@
+ $output =~ s/=([\da-fA-F]{2})/pack("C", hex($1))/ge;
+ $out->print($output);
+ } else {
-+ $out->print(decode_qp($_));
++ $out->print(decode_qp($output));
+ }
}
1;
Or please, portmgr, could I commit this myself ?
--
Mathieu Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 479 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-ports/attachments/20040907/0d40fd4f/attachment.bin
More information about the cvs-ports
mailing list