summaryrefslogtreecommitdiffstats
path: root/copy.c
diff options
context:
space:
mode:
authorBrendan Cully <brendan@kublai.com>2008-06-25 22:43:32 -0700
committerBrendan Cully <brendan@kublai.com>2008-06-25 22:43:32 -0700
commit794abde7ab5ae069d89ac4547068a9430cf22683 (patch)
tree2b7cdf5e56f396b26558611a4a217eb5cd8783fd /copy.c
parent5fbc0df492ab5ec7003a005ec8f5b3d5ddfaddd7 (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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/copy.c b/copy.c
index 4cb91d0c..34272e02 100644
--- a/copy.c
+++ b/copy.c
@@ -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)