<<< Date Index >>>     <<< Thread Index >>>

[PATCH] Compose menu shows PGP info for S/MIME messages



Hello,

the following patch against the CVS HEAD version of Mutt makes Mutt
NOT print additional information, which is only related for PGP mails
("inline"/"PGP/MIME") in S/MIME mode.

2004-08-12  Moritz Schulte  <moritz@xxxxxxxxxxx>

* compose.c (redraw_crypt_lines): Only print additional
information related to PGP in case the current message is indeed
to be encrypted/signed with PGP.

Index: compose.c
===================================================================
RCS file: /home/roessler/cvs/mutt/compose.c,v
retrieving revision 3.17
diff -u -p -r3.17 compose.c
--- compose.c   14 Jul 2004 05:39:23 -0000      3.17
+++ compose.c   12 Aug 2004 14:59:43 -0000
@@ -134,7 +134,8 @@ static void redraw_crypt_lines (HEADER *
addstr (_("Clear"));

if ((WithCrypto & APPLICATION_PGP))
-    if ((msg->security & (ENCRYPT | SIGN)))
+    if ((msg->security & APPLICATION_PGP)
+       && (msg->security & (ENCRYPT | SIGN)))
{
if ((msg->security & INLINE))
addstr (_(" (inline)"));

Thanks,
Moritz

Attachment: pgpjnS9QAsQHH.pgp
Description: PGP signature