From: Kevin McCarthy Date: Wed, 30 Oct 2013 01:25:52 +0000 (-0700) Subject: Add gpg signature name. (closes #3478) X-Git-Tag: mutt-1-5-24-rel~98 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0edb1e37a0535647699beb524bd10e1cdfc21df5;p=mutt 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 cc22c943..44abe872 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 506a078d..c0a5d8fa 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); }