From: Paul Date: Sat, 2 Aug 2014 08:06:17 +0000 (+0100) Subject: implement RFE 3239, 'Remove "Content-Disposition: attachment" from PGP/MIME signed... X-Git-Tag: 3.11.0~38 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=81b0679965b506fce98bedb70f74f8df70e81312;hp=d1d1180b1bbe90db3c57f0ee99baaeab90e81f31 implement RFE 3239, 'Remove "Content-Disposition: attachment" from PGP/MIME signed messages' modified version of the patch submitted by tdajd@6paq.com --- diff --git a/src/plugins/pgpmime/pgpmime.c b/src/plugins/pgpmime/pgpmime.c index c97834d7c..b9a3d7dfe 100644 --- a/src/plugins/pgpmime/pgpmime.c +++ b/src/plugins/pgpmime/pgpmime.c @@ -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';