diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 2000-03-03 09:54:22 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 2000-03-03 09:54:22 +0000 |
commit | c7e156e1412b46cd2c218bc3956342ac9c2f3b1e (patch) | |
tree | 968b752f015be4795ced80f74212af0a81f79032 /attach.c | |
parent | 028d0e5a31fd44da1853f1ae9fce2606420322de (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |