summaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2002-01-25 00:06:03 +0000
committerThomas Roessler <roessler@does-not-exist.org>2002-01-25 00:06:03 +0000
commit13dd8de6af29b8d4311ebe42fd14592977ac084e (patch)
treee3dd306fb7471b69e69b26b72e08713dcb830c52 /commands.c
parentaa0a9df66c75433a465e44cd21a3ff380bc82f6e (diff)
More decryption key detection fixes.
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/commands.c b/commands.c
index 683bae02..2c8f5df4 100644
--- a/commands.c
+++ b/commands.c
@@ -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;