#include "sort.h"
#include "thread.h"
#include "charset.h"
-#include "mutt_crypt.h"
+#include <lib-crypt/crypt.h>
#include "mutt_idna.h"
#include <lib-lib/str.h>
/* 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);
}
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;