-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I noticed that munpack from 1.6-1 and 1.6-3 were unable to determine the
filename for some attachments.
It looks like decode.c:getDispositionFilename was completely broken.
Here is a patch, not very thoroughly tested but seems to work.
diff -u mpack-1.6.orig/decode.c mpack-1.6/decode.c
- --- mpack-1.6.orig/decode.c 2006-07-16 17:27:20.000000000 +0100
+++ mpack-1.6/decode.c 2006-07-16 17:50:38.000000000 +0100
@@ -571,8 +571,8 @@
SkipWhitespace(&disposition);
if (!disposition) return 0;
- - /* If we're looking at a ";", we found what we're looking for */
- - if (*disposition++ == ';') break;
+ /* If we're looking at a "=", we found what we're looking for */
+ if (*disposition++ == '=') break;
}
SkipWhitespace(&disposition);
- --
- --IAN
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
iD8DBQFEunJFqyCEt1GV8GERAk8gAJ9ty/ZfcQXzSycHkGNzB+zLEb8XMgCeMlBE
BwfFuQIBASaGkOHAlvVFRfE=
=Luzm
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]