summaryrefslogtreecommitdiffstats
path: root/copy.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-02-02 10:58:28 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-02-02 10:58:28 +0000
commit646c7e6e33c30ab2acae340db753b2de6177bbaa (patch)
treed6b6f61833cfa9962b7d4f6365129d465e240f72 /copy.c
parent2a976c1aa47318aa8d55baabce9f36658b9accb0 (diff)
[unstable] merging Brandon's imap fixes.
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;
}