changeset: 6392:789501922727 user: Kevin McCarthy <[email protected]> date: Tue Oct 29 18:25:52 2013 -0700 link: http://dev.mutt.org/hg/mutt/rev/789501922727
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 diffs (22 lines): diff -r cd57f8893b43 -r 789501922727 crypt-gpgme.c --- a/crypt-gpgme.c Tue Jan 06 14:38:27 2015 -0800 +++ b/crypt-gpgme.c Tue Oct 29 18:25:52 2013 -0700 @@ -918,6 +918,7 @@ 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 -r cd57f8893b43 -r 789501922727 pgp.c --- a/pgp.c Tue Jan 06 14:38:27 2015 -0800 +++ b/pgp.c Tue Oct 29 18:25:52 2013 -0700 @@ -1127,6 +1127,7 @@ 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); }
