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 /copy.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 'copy.c')
-rw-r--r-- | copy.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -718,6 +718,8 @@ _mutt_copy_message (FILE *fpout, FILE *fpin, HEADER *hdr, BODY *body, return rc; } +/* should be made to return -1 on fatal errors, and 1 on non-fatal errors + * like partial decode, where it is worth displaying as much as possible */ int mutt_copy_message (FILE *fpout, CONTEXT *src, HEADER *hdr, int flags, int chflags) |