diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1998-09-07 20:40:51 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1998-09-07 20:40:51 +0000 |
commit | 18ae85862e640bf145ae27cb20c6e874c9bd8c6d (patch) | |
tree | 42eafe6aa5b2d7d6601c7867e294770f5e74e487 /handler.c | |
parent | 09d790e66ba68a1cd4e2dd3b775ac319180bbbfd (diff) |
[patch-0.94.5i.tlr.pgp_fixes.1] This patch fixes various
pgp-related issues. In particular, mutt won't segfault
when trying to decrypt-save messages from the index, and
the presence of a PGP-encrypted body part on the
attachment menu will no longer confuse the MIME parser.
Diffstat (limited to 'handler.c')
-rw-r--r-- | handler.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -934,9 +934,7 @@ int mutt_can_decode (BODY *a) #ifdef _PGPPATH else if (a->type == TYPEAPPLICATION) { - if (mutt_is_pgp_subtype(a->subtype) || - strcasecmp (a->subtype, "pgp-signed") == 0 || - strcasecmp (a->subtype, "pgp-keys") == 0) + if (mutt_is_application_pgp(a)) return (1); } #endif @@ -1241,10 +1239,7 @@ void mutt_body_handler (BODY *b, STATE *s) #ifdef _PGPPATH else if (b->type == TYPEAPPLICATION) { - if (mutt_is_pgp_subtype(b->subtype) || - strcasecmp ("pgp-signed", b->subtype) == 0 || - strcasecmp ("pgp-keys", b->subtype) == 0) - + if (mutt_is_application_pgp(b)) handler = application_pgp_handler; } #endif /* _PGPPATH */ |