diff options
author | Brendan Cully <brendan@kublai.com> | 2005-08-11 21:16:38 +0000 |
---|---|---|
committer | Brendan Cully <brendan@kublai.com> | 2005-08-11 21:16:38 +0000 |
commit | a281b7cc304ebd981afd04248edff6191d73b686 (patch) | |
tree | 11ff65492f622111dab4ce280427d8127f908165 /copy.c | |
parent | b7cb2829bc6737a010bc841772922a1159bf7fc0 (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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |