enum mail_flags save_flags;
struct istream *crlf_input;
+ ctx->failed = FALSE;
+
T_BEGIN {
const char *path;
if (ctx != NULL) {
/* use the existing allocated structure */
+ ctx->ctx.failed = FALSE;
ctx->ctx.finished = FALSE;
return &ctx->ctx.ctx;
}
if (ctx != NULL) {
/* use the existing allocated structure */
+ ctx->ctx.failed = FALSE;
ctx->ctx.finished = FALSE;
return &ctx->ctx.ctx;
}
{
struct maildir_save_context *ctx = (struct maildir_save_context *)_ctx;
+ /* new mail, new failure state */
+ ctx->failed = FALSE;
+
T_BEGIN {
/* create a new file in tmp/ directory */
const char *fname = _ctx->guid;