fix stupid problem with encrypted gpg mails.
authorPierre Habouzit <madcoder@debian.org>
Mon, 12 Feb 2007 18:25:29 +0000 (19:25 +0100)
committerPierre Habouzit <madcoder@debian.org>
Mon, 12 Feb 2007 18:25:29 +0000 (19:25 +0100)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
handler.c
lib-mime/crypt.c
lib-mime/mime-token.def

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;
     }
 
index 2ef6c42..7c55f2b 100644 (file)
@@ -117,7 +117,7 @@ int mutt_is_application_pgp (BODY * m)
                 t |= PGPSIGN;
                 break;
 
-              case MIME_PGP_ENCRYPT:
+              case MIME_PGP_ENCRYPTED:
                 t |= PGPENCRYPT;
                 break;
 
index 0edef85..8303e05 100644 (file)
@@ -57,7 +57,7 @@ newsgroups
 octet-stream
 organization
 pgp
-pgp-encrypt
+pgp-encrypted
 pgp-keys
 pgp-signed
 pkcs7-mime