Avoid decoding multipart/signed parts. We'll decode their
authorColin Leroy <colin@colino.net>
Fri, 3 May 2013 10:57:34 +0000 (12:57 +0200)
committerColin Leroy <colin@colino.net>
Fri, 3 May 2013 10:57:34 +0000 (12:57 +0200)
children, but the underlying privacy plugin expects the
raw file.

src/procmime.c

index e0c2dd1..95b326a 100644 (file)
@@ -326,7 +326,7 @@ gboolean procmime_decode_content(MimeInfo *mimeinfo)
                                : mimeinfo->encoding_type;
        gchar lastline[BUFFSIZE];
        memset(lastline, 0, BUFFSIZE);
-                  
+
        cm_return_val_if_fail(mimeinfo != NULL, FALSE);
 
        if (prefs_common.respect_flowed_format &&
@@ -349,6 +349,10 @@ gboolean procmime_decode_content(MimeInfo *mimeinfo)
            ))
                return TRUE;
 
+       if (mimeinfo->type == MIMETYPE_MULTIPART && 
+           !strcasecmp(mimeinfo->subtype, "signed"))
+               return TRUE;
+
        infp = procmime_fopen(mimeinfo->data.filename, "rb");
        if (!infp) {
                perror("fopen");