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 |
{ |