summaryrefslogtreecommitdiffstats
path: root/attach.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2000-03-03 09:54:22 +0000
committerThomas Roessler <roessler@does-not-exist.org>2000-03-03 09:54:22 +0000
commitc7e156e1412b46cd2c218bc3956342ac9c2f3b1e (patch)
tree968b752f015be4795ced80f74212af0a81f79032 /attach.c
parent028d0e5a31fd44da1853f1ae9fce2606420322de (diff)
Fix index updates when closing or synching mail folders fails.
There were some bug-fixes hidden in that code.
Diffstat (limited to 'attach.c')
-rw-r--r--attach.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/attach.c b/attach.c
index fb1ecee1..1c4cb636 100644
--- a/attach.c
+++ b/attach.c
@@ -696,7 +696,7 @@ int mutt_save_attachment (FILE *fp, BODY *m, char *path, int flags, HEADER *hdr)
return -1;
if ((msg = mx_open_new_message (&ctx, hn, is_from (buf, NULL, 0) ? 0 : M_ADD_FROM)) == NULL)
{
- mx_close_mailbox(&ctx);
+ mx_close_mailbox(&ctx, NULL);
return -1;
}
if (ctx.magic == M_MBOX || ctx.magic == M_MMDF || ctx.magic == M_KENDRA)
@@ -709,7 +709,7 @@ int mutt_save_attachment (FILE *fp, BODY *m, char *path, int flags, HEADER *hdr)
r = -1;
mx_close_message (&msg);
- mx_close_mailbox (&ctx);
+ mx_close_mailbox (&ctx, NULL);
return r;
}
else