fix bug 3351, 'Two problems when re-sending a file with an attachment' (really one...
authorPaul <paul@claws-mail.org>
Mon, 15 Dec 2014 21:42:25 +0000 (21:42 +0000)
committerPaul <paul@claws-mail.org>
Mon, 15 Dec 2014 21:42:25 +0000 (21:42 +0000)
src/procmime.c

index a463026..20401d8 100644 (file)
@@ -819,7 +819,7 @@ gboolean procmime_scan_text_content(MimeInfo *mimeinfo,
                }
                ertf_parser_destroy(parser);
                conv_code_converter_destroy(conv);
-       } else if (mimeinfo->type == MIMETYPE_TEXT) {
+       } else if (mimeinfo->type == MIMETYPE_TEXT && mimeinfo->disposition != DISPOSITIONTYPE_ATTACHMENT) {
                while (SC_FGETS(buf, sizeof(buf), tmpfp) != NULL) {
                        str = conv_codeset_strdup(buf, src_codeset, CS_UTF_8);
                        if (str) {