implement RFE 3239, 'Remove "Content-Disposition: attachment" from PGP/MIME signed...
authorPaul <paul@claws-mail.org>
Sat, 2 Aug 2014 08:06:17 +0000 (09:06 +0100)
committerPaul <paul@claws-mail.org>
Sat, 2 Aug 2014 08:06:17 +0000 (09:06 +0100)
modified version of the patch submitted by tdajd@6paq.com

src/plugins/pgpmime/pgpmime.c

index c97834d7ceca6d0194114dea8f95c24342457540..b9a3d7dfef5ebda13768ee662e833214da36d350 100644 (file)
@@ -592,12 +592,8 @@ gboolean pgpmime_sign(MimeInfo *mimeinfo, PrefsAccount *account, const gchar *fr
        newinfo = procmime_mimeinfo_new();
        newinfo->type = MIMETYPE_APPLICATION;
        newinfo->subtype = g_strdup("pgp-signature");
-       g_hash_table_insert(newinfo->typeparameters, g_strdup("name"),
-                            g_strdup("signature.asc"));
+       newinfo->description = g_strdup(_("OpenPGP digital signature"));
        newinfo->content = MIMECONTENT_MEM;
-       newinfo->disposition = DISPOSITIONTYPE_ATTACHMENT;
-       g_hash_table_insert(newinfo->dispositionparameters, g_strdup("filename"),
-                           g_strdup("signature.asc"));
        newinfo->data.mem = g_malloc(len + 1);
        g_memmove(newinfo->data.mem, sigcontent, len);
        newinfo->data.mem[len] = '\0';