File: 07_fix-decode-base64-attachment.patch

package info (click to toggle)
mpack 1.6-19
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,300 kB
  • sloc: ansic: 8,791; sh: 330; makefile: 25; perl: 25
file content (16 lines) | stat: -rw-r--r-- 747 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: fix munpack fail to decode a base64 attachment
 It's a patch for a bug in Ubuntu but it also affects Debian.
Author: Jacques Beigbeder (https://launchpad.net/%7Ejacques-beigbeder/+contactuser)
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/mpack/+bug/1535630
Last-Update: 2016-01-20
--- mpack-1.6.orig/decode.c
+++ mpack-1.6/decode.c
@@ -828,7 +828,7 @@ int ignoreMessage(struct part *inpart)
 int handleMultipart(struct part *inpart, char *contentType, params contentParams, int extractText)
 {
     char *id;
-    char *defaultContentType = "text/plain";
+    char *defaultContentType = "application/octet-stream";
     int isAppleDouble = 0;
 
     /* Components of multipart/digest have a different default content-type */