/* remove the temporary mailbox */
static void remove_file (CONTEXT * ctx)
{
- if (ctx->magic == M_MBOX || ctx->magic == M_MMDF)
+ if (ctx->magic == M_MBOX)
remove (ctx->path);
}
ctx->magic = DefaultMagic;
- if (is_new (ctx->realpath) ||
- (ctx->magic != M_MBOX &&
- ctx->magic != M_MMDF))
+ if (is_new (ctx->realpath) || ctx->magic != M_MBOX)
unlink(tmppath);
/* No error checking - the parent function will catch it */
-
return 0;
}
m_fclose(&ctx->fp);
/* if the folder was removed, remove the gzipped folder too */
- if (access (ctx->path, F_OK) != 0 && !option (OPTSAVEEMPTY))
- remove (ctx->realpath);
- else
- remove_file (ctx);
-
+ remove_file (ctx);
restore_path (ctx);
p_delete(&ctx->cinfo);
}