summaryrefslogtreecommitdiffstats
path: root/copy.c
diff options
context:
space:
mode:
authorBrendan Cully <brendan@kublai.com>2005-08-11 21:16:38 +0000
committerBrendan Cully <brendan@kublai.com>2005-08-11 21:16:38 +0000
commita281b7cc304ebd981afd04248edff6191d73b686 (patch)
tree11ff65492f622111dab4ce280427d8127f908165 /copy.c
parentb7cb2829bc6737a010bc841772922a1159bf7fc0 (diff)
Add error results to mutt_body_handlers, and check them when doing
decode-save. Closes: #1919.
Diffstat (limited to 'copy.c')
-rw-r--r--copy.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/copy.c b/copy.c
index a5777c08..8dbec08c 100644
--- a/copy.c
+++ b/copy.c
@@ -546,6 +546,7 @@ _mutt_copy_message (FILE *fpout, FILE *fpin, HEADER *hdr, BODY *body,
char prefix[SHORT_STRING];
STATE s;
long new_offset = -1;
+ int rc = 0;
if (flags & M_CM_PREFIX)
{
@@ -657,7 +658,7 @@ _mutt_copy_message (FILE *fpout, FILE *fpin, HEADER *hdr, BODY *body,
if (WithCrypto && flags & M_CM_VERIFY)
s.flags |= M_VERIFY;
- mutt_body_handler (body, &s);
+ rc = mutt_body_handler (body, &s);
}
else if (WithCrypto
&& (flags & M_CM_DECODE_CRYPT) && (hdr->security & ENCRYPT))
@@ -725,7 +726,7 @@ _mutt_copy_message (FILE *fpout, FILE *fpin, HEADER *hdr, BODY *body,
mutt_free_body (&body->parts);
}
- return 0;
+ return rc;
}
int