summaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-07-28 14:24:36 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-07-28 14:24:36 +0000
commitd521c03a25a159e5316edf9ed5bf1918b61a0815 (patch)
tree62011d2ae16ebb645fa4a44379ff9aa502e0e596 /commands.c
parent78697029c8e433299ba2177d973a4f154bfbfba7 (diff)
Add a hook which enables us to fetch PGP keys from servers on
demand. Look out for pkspxy. :-)
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/commands.c b/commands.c
index 823e166e..40228cc4 100644
--- a/commands.c
+++ b/commands.c
@@ -83,7 +83,6 @@ int mutt_display_message (HEADER *cur)
return 0;
cmflags |= M_CM_VERIFY;
- mutt_message _("Invoking PGP...");
}
else if (cur->pgp & PGPSIGN)
{
@@ -91,13 +90,19 @@ int mutt_display_message (HEADER *cur)
if (query_quadoption (OPT_VERIFYSIG, _("Verify PGP signature?")) == M_YES)
{
cmflags |= M_CM_VERIFY;
- mutt_message _("Invoking PGP...");
}
}
}
-#endif
+
+ if (cmflags & M_CM_VERIFY)
+ {
+ if (cur->env->from)
+ pgp_invoke_getkeys (cur->env->from);
+ mutt_message _("Invoking PGP...");
+ }
+#endif
mutt_mktemp (tempfile);
if ((fpout = safe_fopen (tempfile, "w")) == NULL)