summaryrefslogtreecommitdiffstats
path: root/handler.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-09-07 11:47:26 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-09-07 11:47:26 +0000
commit12004c0e7a91721f115d52f449adff93d030b2a4 (patch)
tree88315b3c2ed58cd491bffb4739f7242677a5be94 /handler.c
parent5ee262734e576feaa5ceaad562e27c95fc2e4eee (diff)
Introducing decrypt-save, decrypt-copy, and
$forw{ard,}-decrypt. Based on work by Emil Laurentiu.
Diffstat (limited to 'handler.c')
-rw-r--r--handler.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/handler.c b/handler.c
index 0ab05b6e..6575a573 100644
--- a/handler.c
+++ b/handler.c
@@ -934,8 +934,7 @@ int mutt_can_decode (BODY *a)
#ifdef _PGPPATH
else if (a->type == TYPEAPPLICATION)
{
- if (strcasecmp (a->subtype, "pgp") == 0 ||
- strcasecmp (a->subtype, "x-pgp-message") == 0 ||
+ if (mutt_is_pgp_subtype(a->subtype) ||
strcasecmp (a->subtype, "pgp-signed") == 0 ||
strcasecmp (a->subtype, "pgp-keys") == 0)
return (1);
@@ -1242,8 +1241,7 @@ void mutt_body_handler (BODY *b, STATE *s)
#ifdef _PGPPATH
else if (b->type == TYPEAPPLICATION)
{
- if (strcasecmp ("pgp", b->subtype) == 0 ||
- strcasecmp ("x-pgp-message", b->subtype) == 0 ||
+ if (mutt_is_pgp_subtype(b->subtype) ||
strcasecmp ("pgp-signed", b->subtype) == 0 ||
strcasecmp ("pgp-keys", b->subtype) == 0)