ports/mail/mutt/files/patch-smime-sender
Steve Wills 9f2ff2b76e mail/mutt: Update to 1.11.1
While here:
* Remove MUTT_LITE parts
* pet portlint
- NNTP broken for 1.11.0
* Add patch-qresync-crash fixes a crash coming in 1.11.1

PR:		233680
Submitted by:	Derek Schrock <dereks@lifeofadishwasher.com> (maintainer)
2018-12-03 22:23:03 +00:00

39 lines
1.4 KiB
Text

--- commands.c.orig 2018-10-04 22:30:10 UTC
+++ commands.c
@@ -186,7 +186,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 2018-11-24 19:06:11 UTC
+++ init.h
@@ -3232,6 +3232,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, OPTSMIMENOSENDER, 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, UL "smime_default_key", 0 },
{ "smime_default_key", DT_STR, R_NONE, UL &SmimeDefaultKey, 0 },
/*
--- mutt.h.orig 2018-11-24 19:06:11 UTC
+++ mutt.h
@@ -551,6 +551,7 @@ enum
OPTSMIMEISDEFAULT,
OPTSMIMESELFENCRYPT,
OPTASKCERTLABEL,
+ OPTSMIMENOSENDER,
OPTSDEFAULTDECRYPTKEY,
OPTPGPIGNORESUB,
OPTPGPCHECKEXIT,