c1c87867f9
Added patch automatically add a filename and description to PGP/MIME attachments. Improved writing style of mutt.spec. The latter done by Marguerite Su. OBS-URL: https://build.opensuse.org/request/show/122254 OBS-URL: https://build.opensuse.org/package/show/server:mail/mutt?expand=0&rev=75
52 lines
1.8 KiB
Plaintext
52 lines
1.8 KiB
Plaintext
diff -rupN a/globals.h b/globals.h
|
|
--- a/globals.h 2009-08-26 03:08:52.000000000 +0800
|
|
+++ b/globals.h 2012-04-11 12:52:44.826523028 +0800
|
|
@@ -227,6 +227,8 @@ WHERE REGEXP PgpGoodSign;
|
|
WHERE char *PgpSignAs;
|
|
WHERE short PgpTimeout;
|
|
WHERE char *PgpEntryFormat;
|
|
+WHERE char *PgpMimeSignatureFilename;
|
|
+WHERE char *PgpMimeSignatureDescription;
|
|
WHERE char *PgpClearSignCommand;
|
|
WHERE char *PgpDecodeCommand;
|
|
WHERE char *PgpVerifyCommand;
|
|
diff -rupN a/init.h b/init.h
|
|
--- a/init.h 2010-09-15 23:39:31.000000000 +0800
|
|
+++ b/init.h 2012-04-11 12:52:44.825523029 +0800
|
|
@@ -2556,6 +2556,18 @@ struct option_t MuttVars[] = {
|
|
** a line quoted text if it also matches $$smileys. This mostly
|
|
** happens at the beginning of a line.
|
|
*/
|
|
+ { "pgp_mime_signature_filename", DT_STR, R_NONE, UL &PgpMimeSignatureFilename, UL "signature.asc"},
|
|
+ /*
|
|
+ ** .pp
|
|
+ ** This option sets the filename used for signature parts in PGP/MIME
|
|
+ ** signed messages.
|
|
+ */
|
|
+ { "pgp_mime_signature_description", DT_STR, R_NONE, UL &PgpMimeSignatureDescription, UL "Digital signature"},
|
|
+ /*
|
|
+ ** .pp
|
|
+ ** This option sets the Content-Description used for signature parts in
|
|
+ ** PGP/MIME signed messages.
|
|
+ */
|
|
|
|
|
|
|
|
diff -rupN a/PATCHES b/PATCHES
|
|
--- a/PATCHES 2008-03-20 04:07:06.000000000 +0800
|
|
+++ b/PATCHES 2012-04-11 12:52:44.824523030 +0800
|
|
@@ -0,0 +1 @@
|
|
+patch-1.5.3.vk.pgp_verbose_mime
|
|
diff -rupN a/pgp.c b/pgp.c
|
|
--- a/pgp.c 2010-09-14 01:19:55.000000000 +0800
|
|
+++ b/pgp.c 2012-04-11 12:52:44.825523029 +0800
|
|
@@ -1129,6 +1129,8 @@ 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", PgpMimeSignatureFilename, &t->parameter);
|
|
+ t->description = safe_strdup (PgpMimeSignatureDescription);
|
|
|
|
return (a);
|
|
}
|