indicate GnuPG signed messages by displaying an icon in the Attachment column
[claws.git] / src / procheader.c
index abdfc9629af18e16fa535831f3d82f2b53e40dbc..514ff56e2ec12bfe527ff092c2c3f8070fc7269d 100644 (file)
@@ -387,7 +387,6 @@ Header * procheader_parse_header(gchar * buf)
        gchar tmp[BUFFSIZE];
        gchar *p = buf;
        Header * header;
-       gchar *backup;
 
        if ((*buf == ':') || (*buf == ' '))
                return NULL;
@@ -636,7 +635,11 @@ MsgInfo *procheader_parse_stream(FILE *fp, MsgFlags flags, gboolean full,
                        else if (!strncasecmp(hp, "multipart/encrypted", 19)) {
                                MSG_SET_TMP_FLAGS(msginfo->flags,
                                                  MSG_ENCRYPTED);
-                       }
+                       } 
+                       else if (!strncasecmp(hp, "multipart", 9) &&
+                                  !strncasecmp(hp, "multipart/signed", 16)) {
+                               MSG_SET_TMP_FLAGS(msginfo->flags, MSG_SIGNED);
+                       } 
                        else if (!strncasecmp(hp, "multipart", 9))
                                MSG_SET_TMP_FLAGS(msginfo->flags, MSG_MIME);
                        break;