]> granicus.if.org Git - neomutt/commitdiff
Only print additional information related to PGP in case the current
authorBrendan Cully <brendan@kublai.com>
Mon, 30 Aug 2004 20:10:10 +0000 (20:10 +0000)
committerBrendan Cully <brendan@kublai.com>
Mon, 30 Aug 2004 20:10:10 +0000 (20:10 +0000)
message is indeed to be encrypted/signed with PGP.

compose.c

index 765999c2a540d82b8e444c7274f49b39b1194561..861641bf15be567884cce8198d84235aa874da5a 100644 (file)
--- a/compose.c
+++ b/compose.c
@@ -134,7 +134,8 @@ static void redraw_crypt_lines (HEADER *msg)
     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)"));