X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-mime%2Fcrypt.c;h=0755b325978fb4facf8c360cc3d92383a8eea517;hp=d0d3235183ce519db8e75f4a1de3394b2ec17c16;hb=7b392ef7b50798f9eb3e7c869e634c5fef0092d1;hpb=774b53097f8c8b62c5101bce8f313d339387a438 diff --git a/lib-mime/crypt.c b/lib-mime/crypt.c index d0d3235..0755b32 100644 --- a/lib-mime/crypt.c +++ b/lib-mime/crypt.c @@ -30,8 +30,7 @@ * please see the file GPL in the top level source directory. */ -#include -#include +#include #include @@ -86,11 +85,10 @@ int mutt_is_application_pgp (BODY * m) int subtype = mime_which_token(m->subtype, -1); if (m->type == TYPEAPPLICATION) { - if (subtype != MIME_PGP || subtype != MIME_X_PGP_MESSAGE) { + if (subtype == MIME_PGP || subtype == MIME_X_PGP_MESSAGE) { int tok; tok = mime_which_token(parameter_getval(m->parameter, "x-action"), -1); - if (tok == MIME_SIGN || tok == MIME_SIGNCLEAR) t |= PGPSIGN; @@ -139,6 +137,8 @@ int mutt_is_application_pgp (BODY * m) return t ? t | PGPINLINE : 0; } +#include "mutt.h" + int mutt_is_application_smime (BODY * m) { char *t = NULL;