talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 81b0679965b506fce98bedb70f74f8df70e81312
parent d1d1180b1bbe90db3c57f0ee99baaeab90e81f31
Author: Paul <paul@claws-mail.org>
Date:   Sat,  2 Aug 2014 09:06:17 +0100

implement RFE 3239, 'Remove "Content-Disposition: attachment" from PGP/MIME signed messages'

modified version of the patch submitted by tdajd@6paq.com

Diffstat:
Msrc/plugins/pgpmime/pgpmime.c | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git 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';