"gpg-sign" is not a valid token, this was a typo.
authorPierre Habouzit <madcoder@debian.org>
Tue, 28 Nov 2006 18:47:29 +0000 (19:47 +0100)
committerPierre Habouzit <madcoder@debian.org>
Tue, 28 Nov 2006 18:47:29 +0000 (19:47 +0100)
also drop some very old mutt things, just use x-action, the rest will be
re-parsed, too bad.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
lib-mime/crypt.c
lib-mime/mime-token.def

index 0755b32..2ef6c42 100644 (file)
@@ -110,13 +110,10 @@ int mutt_is_application_pgp (BODY * m)
     if (m->type == TYPETEXT && subtype == MIME_PLAIN) {
         const char *p;
 
     if (m->type == TYPETEXT && subtype == MIME_PLAIN) {
         const char *p;
 
-        if ((p = parameter_getval(m->parameter, "x-mutt-action"))
-        ||  (p = parameter_getval(m->parameter, "x-action"))
-        ||  (p = parameter_getval(m->parameter, "action")))
-        {
+        if ((p = parameter_getval(m->parameter, "x-action"))) {
             int tok = mime_which_token(p, -1);
             switch (tok) {
             int tok = mime_which_token(p, -1);
             switch (tok) {
-              case MIME_PGP_SIGN:
+              case MIME_PGP_SIGNED:
                 t |= PGPSIGN;
                 break;
 
                 t |= PGPSIGN;
                 break;
 
index e492774..d31607e 100644 (file)
@@ -56,7 +56,6 @@ organization
 pgp
 pgp-encrypt
 pgp-keys
 pgp
 pgp-encrypt
 pgp-keys
-pgp-sign
 pgp-signed
 pkcs7-mime
 plain
 pgp-signed
 pkcs7-mime
 plain