From: Thomas Roessler Date: Tue, 26 Mar 2002 21:08:17 +0000 (+0000) Subject: Also permit for "action" and "x-action" on the receiving end, just X-Git-Tag: mutt-1-5-1-rel~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3ea68354acbe66983d045cbd854b44d285a6f72f;p=mutt Also permit for "action" and "x-action" on the receiving end, just in case we can settle on a joint standard with other MUA developers. --- diff --git a/pgp.c b/pgp.c index 920ebd05..32ed90c8 100644 --- a/pgp.c +++ b/pgp.c @@ -544,8 +544,10 @@ int mutt_is_application_pgp (BODY *m) } else if (m->type == TYPETEXT && ascii_strcasecmp ("plain", m->subtype) == 0) { - if ((p = mutt_get_parameter ("x-mutt-action", m->parameter)) && - !ascii_strcasecmp ("pgp-sign", p)) + if (((p = mutt_get_parameter ("x-mutt-action", m->parameter)) + || (p = mutt_get_parameter ("x-action", m->parameter)) + || (p = mutt_get_parameter ("action", m->parameter))) + && !ascii_strcasecmp ("pgp-sign", p)) t |= PGPSIGN; else if (p && !ascii_strcasecmp ("pgp-encrypt", p)) t |= PGPENCRYPT;