diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-07-28 14:24:36 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-07-28 14:24:36 +0000 |
commit | d521c03a25a159e5316edf9ed5bf1918b61a0815 (patch) | |
tree | 62011d2ae16ebb645fa4a44379ff9aa502e0e596 /commands.c | |
parent | 78697029c8e433299ba2177d973a4f154bfbfba7 (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.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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) |