Date: Tue, 07 Sep 2004 08:34:05 +0200 From: Mathieu Arnold <mat@FreeBSD.org> To: Martin Blapp <mb@imp.ch>, Martin Blapp <mbr@FreeBSD.org> Cc: ports-committers@FreeBSD.org Subject: Re: cvs commit: ports/mail/p5-MIME-Tools/files patch-Decoder-qpdecode-pdf Message-ID: <491CF2BD65579DF866B556D6@[192.168.1.51]> In-Reply-To: <20040904005533.N6407@cvs.imp.ch> References: <200409032241.i83MfNIT057401@repoman.freebsd.org> <20040904005533.N6407@cvs.imp.ch>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
+-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
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
iQEVAwUBQT1WYVvROjYJ63c1AQItsgf/ba2F14A3MU/ETY2Fc+MrnKJ0Bp1K3mlz
maGBNVufPH2AKU1QBWfCM7I7eiv2w3qkbqfUtC1D9XO3KcIhkrmWCpUMhiIOx0Xm
WeACKkCa9UXR7yW/aFD+GiebhbQs/2FyPY/OhudsdWtoyQGIE5pYB3wyfWhlQPCm
14wzX2AmMP6MDlzIj79pzWsxHvGqv8yS0h1dztk39zp/fvx2OE/BrMFjZnyCpsCl
uOivMrS/o1lFKEYxXlCzLhpVpG4zOj3lkBdmEhZjrQKt7AzdjPNqQDZLQTwY+uXN
wT0pPU/1a3WRu3M5wzrTD/ZxsEGoERZUlYGWVOTxeykRwMS2Fo2t2g==
=akqO
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?491CF2BD65579DF866B556D6>
