aboutsummaryrefslogtreecommitdiff
path: root/mail/mutt/files/extra-smime-sender
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mutt/files/extra-smime-sender')
-rw-r--r--mail/mutt/files/extra-smime-sender39
1 files changed, 39 insertions, 0 deletions
diff --git a/mail/mutt/files/extra-smime-sender b/mail/mutt/files/extra-smime-sender
new file mode 100644
index 000000000000..351bba964cc6
--- /dev/null
+++ b/mail/mutt/files/extra-smime-sender
@@ -0,0 +1,39 @@
+--- commands.c.orig 2020-05-02 21:08:56 UTC
++++ commands.c
+@@ -302,7 +302,7 @@ int mutt_display_message (HEADER *cur)
+ {
+ if (cur->security & GOODSIGN)
+ {
+- if (!crypt_smime_verify_sender(cur))
++ if (option(OPTSMIMENOSENDER) || !crypt_smime_verify_sender(cur))
+ mutt_message ( _("S/MIME signature successfully verified."));
+ else
+ mutt_error ( _("S/MIME certificate owner does not match sender."));
+--- init.h.orig 2020-05-05 02:09:33 UTC
++++ init.h
+@@ -3608,6 +3608,15 @@ struct option_t MuttVars[] = {
+ ** to determine the key to use. It will ask you to supply a key, if it can't find one.
+ ** (S/MIME only)
+ */
++ { "smime_dont_check_sender", DT_BOOL, R_NONE, {.l=OPTSMIMENOSENDER}, {.l=0} },
++ /*
++ ** .pp
++ ** This flag controls wether you want the skip the check for the sender's
++ ** email address against the email address stored in the certificate.
++ ** This can be useful if most of your email senders use SMIMEv3 which no
++ ** longer needs email-addresses as part of the certificates.
++ ** It is not set by default.
++ */
+ { "smime_self_encrypt_as", DT_SYN, R_NONE, {.p="smime_default_key"}, {.p=0} },
+ { "smime_default_key", DT_STR, R_NONE, {.p=&SmimeDefaultKey}, {.p=0} },
+ /*
+--- mutt.h.orig 2020-05-05 02:09:33 UTC
++++ mutt.h
+@@ -596,6 +596,7 @@ enum
+ OPTSMIMEISDEFAULT,
+ OPTSMIMESELFENCRYPT,
+ OPTASKCERTLABEL,
++ OPTSMIMENOSENDER,
+ OPTSDEFAULTDECRYPTKEY,
+ OPTPGPIGNORESUB,
+ OPTPGPCHECKEXIT,