always build mutt with pgp + smime support.
[apps/madmutt.git] / hdrline.c
index b47e2bd..79b3ea5 100644 (file)
--- a/hdrline.c
+++ b/hdrline.c
@@ -646,7 +646,7 @@ static const char *hdr_format_str (char *dest,
       /* The recursion allows messages without depth to return 0. */
       if (optional)
         optional = count != 0;
-      
+
       snprintf (fmt, sizeof (fmt), "%%%sd", prefix);
       snprintf (dest, destlen, fmt, count);
     }
@@ -656,35 +656,27 @@ static const char *hdr_format_str (char *dest,
 
     ch = ' ';
 
-    if (WithCrypto && hdr->security & GOODSIGN)
+    if (hdr->security & GOODSIGN)
       ch = 'S';
-    else if (WithCrypto && hdr->security & ENCRYPT)
+    else if (hdr->security & ENCRYPT)
       ch = 'P';
-    else if (WithCrypto && hdr->security & SIGN)
+    else if (hdr->security & SIGN)
       ch = 's';
-    else if ((WithCrypto & APPLICATION_PGP) && hdr->security & PGPKEY)
+    else if (hdr->security & PGPKEY)
       ch = 'K';
 
-    snprintf (buf2, sizeof (buf2),
-              "%c%c%c", (THREAD_NEW ? 'n' : (THREAD_OLD ? 'o' :
-                                             ((hdr->read
-                                               && (ctx
-                                                   && ctx->msgnotreadyet !=
-                                                   hdr->msgno))
-                                              ? (hdr->
-                                                 replied ? 'r' : ' ') : (hdr->
-                                                                         old ?
-                                                                         'O' :
-                                                                         'N')))),
+    snprintf(buf2, sizeof (buf2), "%c%c%c",
+             (THREAD_NEW ? 'n'
+              : (THREAD_OLD
+                 ?  'o'
+                 : ((hdr->read && (ctx && ctx->msgnotreadyet != hdr->msgno))
+                    ? (hdr->replied ? 'r' : ' ')
+                    : (hdr->old ?  'O' : 'N')))),
               hdr->deleted ? 'D' : (hdr->attach_del ? 'd' : ch),
-              hdr->tagged ? '*' : (hdr->
-                                   flagged ? '!' : (Tochars
-                                                    &&
-                                                    ((i =
-                                                      mutt_user_is_recipient
-                                                      (hdr)) <
-                                                     m_strlen(Tochars)) ?
-                                                    Tochars[i] : ' ')));
+              hdr->tagged ? '*'
+              : (hdr->flagged ? '!'
+                 : (Tochars && ((i = mutt_user_is_recipient(hdr)) < m_strlen(Tochars))
+                    ?  Tochars[i] : ' ')));
     mutt_format_s (dest, destlen, prefix, buf2);
     break;