My correction was erroneous.
May be intentionaly the mail said:
Content-Type: WinRAR.ZIP;
which is invalid as a content-type.
In this case, decode.c line 94 says:
char *defaultContentType = "text/plain";
which is a non-sense in case of a .zip file: within a zip, \r should be saved.
Cf lines 1070, 1077, 1084 of decode.c:
if (!suppressCR || buf[***] != '\r')
^^^^^^^^^^^
Settings text/plain sets : suppressCR=1; (decode.c line 932).
So the good correction must be:
*** mpack-1.6-original/decode.c 2016-01-20 15:12:44.000000000 +0100
--- mpack-1.6/decode.c 2016-01-20 15:14:48.661606855 +0100
***************
*** 828,834 ****
int handleMultipart(struct part *inpart, char *contentType, params
contentParams, int extractText)
{
char *id;
! char *defaultContentType = "text/plain";
int isAppleDouble = 0;
/* Components of multipart/digest have a different default content-type */
--- 828,834 ----
int handleMultipart(struct part *inpart, char *contentType, params
contentParams, int extractText)
{
char *id;
! char *defaultContentType = "application/octet-stream";
int isAppleDouble = 0;
/* Components of multipart/digest have a different default content-type */
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1535630
Title:
munpack fail to decode a base64 attachment
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mpack/+bug/1535630/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs