summaryrefslogtreecommitdiffstats
path: root/attach.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-07-01 09:45:12 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-07-01 09:45:12 +0000
commit32016c8f74f4914c71e2c006c82ab7a6c7ddebd6 (patch)
tree3bc556f813a6d8377bddefaf21c36621d56928a0 /attach.c
parentedfda8e884b92c31e0fe1c9a27cc32077862059f (diff)
Various patches from last week, including:
- new mh/maildir access code. - subscribe/unsubscribe - various fixes.
Diffstat (limited to 'attach.c')
-rw-r--r--attach.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/attach.c b/attach.c
index f4a0d3b0..ea77dd04 100644
--- a/attach.c
+++ b/attach.c
@@ -1,5 +1,6 @@
/*
* Copyright (C) 1996-8 Michael R. Elkins <me@cs.hmc.edu>
+ * Copyright (C) 1999 Thomas Roessler <roessler@guug.de>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -699,9 +700,10 @@ int mutt_save_attachment (FILE *fp, BODY *m, char *path, int flags, HEADER *hdr)
chflags |= (ctx.magic == M_MAILDIR ? CH_NOSTATUS : CH_UPDATE);
if ((r = _mutt_copy_message (msg->fp, fp, hn, hn->content, 0, chflags)) == 0)
mutt_message _("Attachment saved.");
-
+
+ mx_commit_message (msg, &ctx);
mx_close_message (&msg);
- mx_close_mailbox(&ctx);
+ mx_close_mailbox (&ctx);
return r;
}
else