Show
Ignore:
Timestamp:
2008-07-01 14:49:21 (5 months ago)
Author:
Brendan Cully <brendan@…>
Branch:
HEAD
Message:

Handle DONTHANDLEPGPKEYS in handler instead of crypto modules.
This lets gpgme and classic pgp share a bit of logic, and unbreaks key
extraction at least for classic PGP.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • handler.c

    r5429 r5437  
    15801580  else if (WithCrypto && b->type == TYPEAPPLICATION) 
    15811581  { 
    1582     if ((WithCrypto & APPLICATION_PGP) && mutt_is_application_pgp (b)) 
     1582    if (option (OPTDONTHANDLEPGPKEYS) 
     1583        && !ascii_strcasecmp("pgp-keys", b->subtype)) 
     1584    { 
     1585      /* pass raw part through for key extraction */ 
     1586      plaintext = 1; 
     1587    } 
     1588    else if ((WithCrypto & APPLICATION_PGP) && mutt_is_application_pgp (b)) 
    15831589      handler = crypt_pgp_application_pgp_handler; 
    1584     if ((WithCrypto & APPLICATION_SMIME) && mutt_is_application_smime(b)) 
     1590    else if ((WithCrypto & APPLICATION_SMIME) && mutt_is_application_smime(b)) 
    15851591      handler = crypt_smime_application_smime_handler; 
    15861592  }