diff options
author | Brendan Cully <brendan@kublai.com> | 2008-06-25 22:43:32 -0700 |
---|---|---|
committer | Brendan Cully <brendan@kublai.com> | 2008-06-25 22:43:32 -0700 |
commit | 794abde7ab5ae069d89ac4547068a9430cf22683 (patch) | |
tree | 2b7cdf5e56f396b26558611a4a217eb5cd8783fd /crypt-gpgme.c | |
parent | 5fbc0df492ab5ec7003a005ec8f5b3d5ddfaddd7 (diff) |
Make mutt_copy_message distinguish between fatal and non-fatal errors.
Non-fatal errors should prevent moving messages, since they indicate
data loss. But mutt should still attempt to display them, since being
able to see some attachments is better than nothing.
Also stop printing out non-PGP material in application/pgp
attachments. Closes #2545, #2912.
Diffstat (limited to 'crypt-gpgme.c')
-rw-r--r-- | crypt-gpgme.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/crypt-gpgme.c b/crypt-gpgme.c index ae5d87b9..ee0477c8 100644 --- a/crypt-gpgme.c +++ b/crypt-gpgme.c @@ -2096,7 +2096,7 @@ int pgp_gpgme_application_handler (BODY *m, STATE *s) char *tmpfname; { - /* Check wether signatures have been verified. */ + /* Check whether signatures have been verified. */ gpgme_verify_result_t verify_result; verify_result = gpgme_op_verify_result (ctx); @@ -2199,13 +2199,16 @@ int pgp_gpgme_application_handler (BODY *m, STATE *s) safe_fclose (&pgpout); } } +#if 0 else - { - /* XXX - we may wish to recode here */ - if (s->prefix) - state_puts (s->prefix, s); - state_puts (buf, s); - } + { + /* why would we want to display this at all? */ + /* XXX - we may wish to recode here */ + if (s->prefix) + state_puts (s->prefix, s); + state_puts (buf, s); + } +#endif } m->goodsig = (maybe_goodsig && have_any_sigs); @@ -2214,7 +2217,7 @@ int pgp_gpgme_application_handler (BODY *m, STATE *s) { state_attach_puts (_("[-- Error: could not find beginning" " of PGP message! --]\n\n"), s); - return -1; + return 1; } dprint (2, (debugfile, "Leaving pgp_application_pgp handler\n")); |