From: Kevin McCarthy Date: Wed, 30 Oct 2013 01:25:52 +0000 (-0700) Subject: Add gpg signature name. (closes #3478) X-Git-Tag: neomutt-20160307~111 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c42fd7d429829b67778d2e007006a73270307fdd;p=neomutt Add gpg signature name. (closes #3478) Some mail clients display "noname" for the gpg signature attachment. This patch sets the mime name to "signature.asc". The patch is based on http://dev.mutt.org/trac/attachment/ticket/3478/gpg_signature_name.patch with the changes: - removes the configuration options - removes mime description --- diff --git a/crypt-gpgme.c b/crypt-gpgme.c index cc22c9435..44abe8728 100644 --- a/crypt-gpgme.c +++ b/crypt-gpgme.c @@ -918,6 +918,7 @@ static BODY *sign_message (BODY *a, int use_smime) else { t->subtype = safe_strdup ("pgp-signature"); + mutt_set_parameter ("name", "signature.asc", &t->parameter); t->use_disp = 0; t->disposition = DISPNONE; t->encoding = ENC7BIT; diff --git a/pgp.c b/pgp.c index 506a078d1..c0a5d8fa8 100644 --- a/pgp.c +++ b/pgp.c @@ -1127,6 +1127,7 @@ BODY *pgp_sign_message (BODY *a) t->disposition = DISPNONE; t->encoding = ENC7BIT; t->unlink = 1; /* ok to remove this file after sending. */ + mutt_set_parameter ("name", "signature.asc", &t->parameter); return (a); }