X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-mime%2Fcrypt.c;h=2ef6c4280f8d4d682fb04362084bdb1bed5178b2;hb=b23d5033080fe9f9fba038e3cf1e3ec2b0a0d33d;hp=16cbebd027efefea3854bfcb97376ef80fe0d1de;hpb=a0aa4a45870f1607e8b41760866071692675c84d;p=apps%2Fmadmutt.git diff --git a/lib-mime/crypt.c b/lib-mime/crypt.c index 16cbebd..2ef6c42 100644 --- a/lib-mime/crypt.c +++ b/lib-mime/crypt.c @@ -85,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; @@ -111,13 +110,10 @@ int mutt_is_application_pgp (BODY * m) if (m->type == TYPETEXT && subtype == MIME_PLAIN) { const char *p; - if ((p = parameter_getval(m->parameter, "x-mutt-action")) - || (p = parameter_getval(m->parameter, "x-action")) - || (p = parameter_getval(m->parameter, "action"))) - { + if ((p = parameter_getval(m->parameter, "x-action"))) { int tok = mime_which_token(p, -1); switch (tok) { - case MIME_PGP_SIGN: + case MIME_PGP_SIGNED: t |= PGPSIGN; break;