[evolution-patches] header decoding patch



Hello,

This patch fixes incorrect decoding of attachment filename.
If filename specified in Content-Disposition header is made
of two or more "encoded words" (in terms of rfc2047)
then mailer try to decode such filename as it was one "encoded word".


--- camel/camel-mime-utils.c
+++ camel/camel-mime-utils.c
@@ -2024,7 +2026,7 @@
 			 */
 			char *val;
 			
-			val = rfc2047_decode_word (value, strlen (value));
+			val = header_decode_text (value, strlen (value), NULL);
 			if (val) {
 				g_free (value);
 				value = val;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]