summaryrefslogtreecommitdiffstats
path: root/copy.c
diff options
context:
space:
mode:
Diffstat (limited to 'copy.c')
-rw-r--r--copy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/copy.c b/copy.c
index 43fabec6..fd2d0737 100644
--- a/copy.c
+++ b/copy.c
@@ -593,7 +593,8 @@ _mutt_append_message (CONTEXT *dest, FILE *fpin, CONTEXT *src, HEADER *hdr,
chflags |= CH_FROM;
chflags |= (dest->magic == M_MAILDIR ? CH_NOSTATUS : CH_UPDATE);
r = _mutt_copy_message (msg->fp, fpin, hdr, body, flags, chflags);
- mx_close_message (&msg);
+ if (mx_close_message (&msg) != 0)
+ return (-1);
return r;
}