Mercurial > dovecot > core-2.2
changeset 16559:42a5acba17e5
pop3c: Fixed mail saving to fail nicely, not assert-crash.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 26 Jun 2013 19:47:40 +0300 |
parents | f3b9325509fd |
children | 2e6829462405 |
files | src/lib-storage/index/pop3c/pop3c-storage.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/pop3c/pop3c-storage.c Wed Jun 26 19:33:38 2013 +0300 +++ b/src/lib-storage/index/pop3c/pop3c-storage.c Wed Jun 26 19:47:40 2013 +0300 @@ -245,7 +245,7 @@ } static int -pop3c_save_begin(struct mail_save_context *ctx ATTR_UNUSED, +pop3c_save_begin(struct mail_save_context *ctx, struct istream *input ATTR_UNUSED) { mail_storage_set_error(ctx->transaction->box->storage, @@ -258,14 +258,16 @@ return -1; } -static int pop3c_save_finish(struct mail_save_context *ctx ATTR_UNUSED) +static int pop3c_save_finish(struct mail_save_context *ctx) { + index_save_context_free(ctx); return -1; } static void -pop3c_save_cancel(struct mail_save_context *ctx ATTR_UNUSED) +pop3c_save_cancel(struct mail_save_context *ctx) { + index_save_context_free(ctx); } static bool pop3c_storage_is_inconsistent(struct mailbox *box)