fix stupid problem with encrypted gpg mails.
[apps/madmutt.git] / handler.c
index 5df2b21..c5c8301 100644 (file)
--- a/handler.c
+++ b/handler.c
@@ -1357,7 +1357,7 @@ int mutt_body_handler (BODY * b, STATE * s)
 
       if (!p)
         mutt_error(_("Error: multipart/encrypted has no protocol parameter!"));
-      else if (tok == MIME_APPLICATION_PGP_ENCRYPTED)
+      else if (mime_which_token(p, -1) == MIME_APPLICATION_PGP_ENCRYPTED)
         handler = crypt_pgp_encrypted_handler;
     }