diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 2002-01-25 00:06:03 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 2002-01-25 00:06:03 +0000 |
commit | 13dd8de6af29b8d4311ebe42fd14592977ac084e (patch) | |
tree | e3dd306fb7471b69e69b26b72e08713dcb830c52 /commands.c | |
parent | aa0a9df66c75433a465e44cd21a3ff380bc82f6e (diff) |
More decryption key detection fixes.
Diffstat (limited to 'commands.c')
-rw-r--r-- | commands.c | 22 |
1 files changed, 1 insertions, 21 deletions
@@ -89,27 +89,7 @@ int mutt_display_message (HEADER *cur) { #ifdef HAVE_SMIME if (cur->security & APPLICATION_SMIME) - { - ADDRESS *t; - int found = 0; - for (t = cur->env->to; !found && t; t = t->next) - if (mutt_addr_is_user (t)) - { - found = 1; - smime_getkeys (t->mailbox); - } - for (t = cur->env->cc; !found && t; t = t->next) - if (mutt_addr_is_user (t)) - { - found = 1; - smime_getkeys (t->mailbox); - } - if (!found && (t = mutt_default_from())) - { - smime_getkeys (t->mailbox); - rfc822_free_address (&t); - } - } + smime_getkeys (cur->env); #endif if(!crypt_valid_passphrase(cur->security)) return 0; |