[Commits] [SCM] claws branch, master, updated. 3.15.0-72-gbd6cfc2

ticho at claws-mail.org ticho at claws-mail.org
Wed Jun 21 21:05:43 CEST 2017


The branch, master has been updated
       via  bd6cfc227c3386329ce7baef2aac10788e47c445 (commit)
      from  755c0b590030b69c3e42244a3c46b6936d6ae999 (commit)

Summary of changes:
 src/plugins/pgpmime/pgpmime.c |    4 ++++
 1 file changed, 4 insertions(+)


- Log -----------------------------------------------------------------
commit bd6cfc227c3386329ce7baef2aac10788e47c445
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Wed Jun 21 21:04:22 2017 +0200

    Add a 'signature.asc' filename for PGP MIME signatures.
    
    This requires Content-Disposition MIME header to be set.
    We set the disposition to "inline". Closes bug #3836.

diff --git a/src/plugins/pgpmime/pgpmime.c b/src/plugins/pgpmime/pgpmime.c
index e14ebe0..f9b459d 100644
--- a/src/plugins/pgpmime/pgpmime.c
+++ b/src/plugins/pgpmime/pgpmime.c
@@ -599,6 +599,10 @@ gboolean pgpmime_sign(MimeInfo *mimeinfo, PrefsAccount *account, const gchar *fr
 	newinfo->data.mem = g_malloc(len + 1);
 	g_memmove(newinfo->data.mem, sigcontent, len);
 	newinfo->data.mem[len] = '\0';
+	newinfo->disposition = DISPOSITIONTYPE_INLINE;
+	g_hash_table_insert(newinfo->dispositionparameters,
+			g_strdup("filename"), g_strdup("signature.asc"));
+
 	g_node_append(sigmultipart->node, newinfo->node);
 
 	g_free(sigcontent);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list