View | Details | Raw Unified | Return to bug 42123
Collapse All | Expand All

(-)./Makefile (-13 lines)
Lines 47-55 Link Here
47
# If you want to enable extended quoting functions define:
47
# If you want to enable extended quoting functions define:
48
#  WITH_MUTT_QUOTE_PATCH
48
#  WITH_MUTT_QUOTE_PATCH
49
#
49
#
50
# If you want to enable the pgp_outlook_compat function for use with pgp define:
51
#  WITH_MUTT_PGP_OUTLOOK_PATCH
52
#
53
# If you want to disable a outlook_compat function for use with smime define:
50
# If you want to disable a outlook_compat function for use with smime define:
54
#  WITHOUT_MUTT_SMIME_OUTLOOK_COMPAT
51
#  WITHOUT_MUTT_SMIME_OUTLOOK_COMPAT
55
#
52
#
Lines 167-179 Link Here
167
.if defined(WITH_MUTT_CYRUS_SASL)
164
.if defined(WITH_MUTT_CYRUS_SASL)
168
LIB_DEPENDS+=	sasl.8:${PORTSDIR}/security/cyrus-sasl
165
LIB_DEPENDS+=	sasl.8:${PORTSDIR}/security/cyrus-sasl
169
.endif
166
.endif
170
.if exists(${LOCALBASE}/bin/pgp)
171
WITH_MUTT_PGP_OUTLOOK_PATCH=	yes
172
.endif
173
.if defined(WITH_MUTT_PGP_OUTLOOK_PATCH)
174
pre-configure::
175
	${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-pgp-outlook
176
.endif
177
.if defined(WITHOUT_MUTT_SMIME_OUTLOOK_COMPAT)
167
.if defined(WITHOUT_MUTT_SMIME_OUTLOOK_COMPAT)
178
pre-configure::
168
pre-configure::
179
	${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-smime-no-outlook
169
	${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-smime-no-outlook
Lines 242-250 Link Here
242
.endif
232
.endif
243
.if defined(WITH_MUTT_QUOTE_PATCH)
233
.if defined(WITH_MUTT_QUOTE_PATCH)
244
SCRIPTS_ENV+=	MUTT_QUOTE_PATCH="yes"
234
SCRIPTS_ENV+=	MUTT_QUOTE_PATCH="yes"
245
.endif
246
.if defined(WITH_MUTT_PGP_OUTLOOK_PATCH)
247
SCRIPTS_ENV+=	MUTT_PGP_OUTLOOK_PATCH="yes"
248
.endif
235
.endif
249
.if defined(WITH_MUTT_EDIT_THREADS)
236
.if defined(WITH_MUTT_EDIT_THREADS)
250
SCRIPTS_ENV+=	MUTT_EDIT_THREADS="yes"
237
SCRIPTS_ENV+=	MUTT_EDIT_THREADS="yes"
(-)./files/extra-patch-pgp-outlook (-77 lines)
Lines 1-77 Link Here
1
--- init.h.orig	Mon Feb 12 08:54:57 2001
2
+++ init.h	Sat Feb 24 18:03:32 2001
3
@@ -1227,6 +1227,13 @@
4
   ** \fBdeprecated\fP.
5
   */
6
 
7
+  { "pgp_outlook_compat", DT_QUAD, R_NONE, OPT_PGPOUTLOOK, M_NO },
8
+  /*
9
+  ** .pp
10
+  ** If pgp_create_traditional is defined above, this option causes mutt
11
+  ** to generate messages readable by users of MS Outlook using PGP.
12
+  */
13
+
14
   /* XXX Default values! */
15
   
16
   { "pgp_decode_command", 	DT_STR, R_NONE, UL &PgpDecodeCommand, 0},
17
--- mutt.h.orig	Tue Feb 26 22:40:16 2002
18
+++ mutt.h	Tue Feb 26 22:44:05 2002
19
@@ -263,2 +263,3 @@
20
   OPT_PGPTRADITIONAL, /* create old-style PGP messages */
21
+  OPT_PGPOUTLOOK,     /* Create even older broken outlook compatible messages */
22
 #endif
23
--- pgp.c.orig	Thu Apr  4 08:49:50 2002
24
+++ pgp.c	Sun May  5 13:57:57 2002
25
@@ -1399,11 +1399,20 @@
26
   
27
   b->encoding = ENC7BIT;
28
 
29
-  b->type = TYPETEXT;
30
-  b->subtype = safe_strdup ("plain");
31
-  
32
-  mutt_set_parameter ("x-action", flags & ENCRYPT ? "pgp-encrypted" : "pgp-signed",
33
-		      &b->parameter);
34
+  /* Outlook seems to work by scanning the message itself for PGP information, */
35
+  /* not the headers.  If the headers are anything but text/plain, it will */
36
+  /* not recognize the message. */
37
+  if (flags & PGPOUTLOOK) {
38
+    b->type = TYPETEXT;
39
+    b->subtype = safe_strdup ("plain");
40
+  } else {
41
+    b->type = TYPEAPPLICATION;
42
+    b->subtype = safe_strdup ("pgp");
43
+
44
+    mutt_set_parameter ("format", "text", &b->parameter);
45
+    mutt_set_parameter ("x-action", flags & ENCRYPT ? "pgp-encrypted" : "pgp-signed",
46
+		        &b->parameter);
47
+  }
48
   mutt_set_parameter ("charset", send_charset, &b->parameter);
49
   
50
   b->filename = safe_strdup (pgpoutfile);
51
--- pgplib.h.orig	Sun Feb  3 10:34:23 2002
52
+++ pgplib.h	Sun May  5 14:01:30 2002
53
@@ -25,6 +25,7 @@
54
 #define PGPSIGN     (APPLICATION_PGP | SIGN)
55
 #define PGPGOODSIGN (APPLICATION_PGP | GOODSIGN)
56
 #define PGPKEY      (APPLICATION_PGP | (1 << 3))
57
+#define PGPOUTLOOK  (APPLICATION_PGP | (1 << 4))
58
 
59
 #define KEYFLAG_CANSIGN 		(1 <<  0)
60
 #define KEYFLAG_CANENCRYPT 		(1 <<  1)
61
--- crypt.c.orig	Tue Mar 26 23:23:11 2002
62
+++ crypt.c	Sun May  5 13:53:52 2002
63
@@ -184,8 +184,13 @@
64
     {
65
       if ((i = query_quadoption (OPT_PGPTRADITIONAL, _("Create an inline PGP message?"))) == -1)
66
 	return -1;
67
-      else if (i == M_YES)
68
+      else if (i == M_YES) {
69
 	traditional = 1;
70
+	if ((i = query_quadoption (OPT_PGPOUTLOOK, _("Create an Outlook compatible message?"))) == -1)
71
+	  return -1;
72
+	else if (i == M_YES)
73
+	  flags |= PGPOUTLOOK;
74
+      }
75
     }
76
     if (traditional)
77
     {
(-)./scripts/generate-plist (-3 lines)
Lines 139-147 Link Here
139
  if [ "$MUTT_IFDEF_PATCH" = "yes" ]; then
139
  if [ "$MUTT_IFDEF_PATCH" = "yes" ]; then
140
    html=$(($html + 1))
140
    html=$(($html + 1))
141
  fi
141
  fi
142
  if [ "$MUTT_PGP_OUTLOOK_PATCH" = "yes" ]; then
143
    html=$(($html + 1))
144
  fi
145
  echo "share/doc/mutt/html/manual.html" >> $tmp_first
142
  echo "share/doc/mutt/html/manual.html" >> $tmp_first
146
  echo "share/doc/mutt/html/manual_toc.html" >> $tmp_first 
143
  echo "share/doc/mutt/html/manual_toc.html" >> $tmp_first 
147
  i=1
144
  i=1

Return to bug 42123