summaryrefslogtreecommitdiff
path: root/chinese/mutt/files/patch-parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'chinese/mutt/files/patch-parse.c')
-rw-r--r--chinese/mutt/files/patch-parse.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/chinese/mutt/files/patch-parse.c b/chinese/mutt/files/patch-parse.c
new file mode 100644
index 000000000000..f2545cc43cb7
--- /dev/null
+++ b/chinese/mutt/files/patch-parse.c
@@ -0,0 +1,15 @@
+--- parse.c.orig Sat Apr 22 16:49:29 2000
++++ parse.c Sat Aug 5 14:25:02 2000
+@@ -407,10 +407,11 @@
+ else if (!mutt_strcasecmp ("description", line + 8))
+ {
+ mutt_str_replace (&p->description, c);
+- rfc2047_decode (p->description, p->description, mutt_strlen (p->description) + 1);
+ }
+ }
+ }
++ if (p->description) rfc2047_decode (p->description, p->description, mutt_strlen (p->description) + 1);
++ if (p->filename) rfc2047_decode (p->filename, p->filename, mutt_strlen (p->filename) + 1);
+ p->offset = ftell (fp); /* Mark the start of the real data */
+ if (p->type == TYPETEXT && !p->subtype)
+ p->subtype = safe_strdup ("plain");