summaryrefslogtreecommitdiff
path: root/mail/mutt-devel/files/patch-smime-sender
blob: 13ccf385f04202805f943e685111677a66585ee7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
--- commands.c.orig2	Fri May 31 10:14:06 2002
+++ commands.c	Fri May 31 10:32:00 2002
@@ -197,7 +197,7 @@
     {
       if (cur->security & GOODSIGN)
       {
-	if (!smime_verify_sender(cur))
+	if (option(OPTSMIMENOSENDER) || !smime_verify_sender(cur))
 	  mutt_message ( _("S/MIME signature successfully verified."));
 	else
 	  mutt_error ( _("S/MIME certificate owner does not match sender."));
--- init.h.orig2	Fri May 31 10:14:05 2002
+++ init.h	Fri May 31 10:54:55 2002
@@ -1435,6 +1435,15 @@
   ** This flag controls wether you want to be asked to enter a label for a certificate
   ** about to be added to the database or not. It is set by default.
   */
+  { "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_decrypt_use_default_key",	DT_BOOL, R_NONE, OPTSDEFAULTDECRYPTKEY, 1 },
   /*
   ** .pp
--- mutt.h.orig2	Fri May 31 10:14:06 2002
+++ mutt.h	Fri May 31 10:24:03 2002
@@ -453,6 +453,7 @@
 #ifdef HAVE_SMIME
   OPTSMIMEISDEFAULT,
   OPTASKCERTLABEL,
+  OPTSMIMENOSENDER,
   OPTSDEFAULTDECRYPTKEY,
 #endif
 #ifdef HAVE_PGP
--- contrib/smime.rc.orig	Sat Mar  2 12:59:50 2002
+++ contrib/smime.rc	Fri May 31 17:09:04 2002
@@ -6,9 +6,12 @@
 # will be the default method unless the following option is set
 set smime_is_default
 
-# Uncoment this if you don't want to set labels for certificates you add.
+# Uncomment this if you don't want to set labels for certificates you add.
 # unset smime_ask_cert_label
 
+# Uncomment this if you don't want to check for sender's email address
+# set smime_dont_check_sender = yes
+
 # Passphrase expiration
 set smime_timeout=300
 
@@ -23,9 +26,9 @@
 
 # The (default) keyfile for signing/decrypting.  Uncomment the following
 # line and replace the keyid with your own.
-set smime_default_key="12345678.0"
+# set smime_default_key="12345678.0"
 
-# Uncommen to make mutt ask what key to use when trying to decrypt a message.
+# Uncomment to make mutt ask what key to use when trying to decrypt a message.
 # It will use the default key above (if that was set) else.
 # unset smime_decrypt_use_default_key