X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-mx%2Fcompress.c;fp=lib-mx%2Fcompress.c;h=93a383d99d8a4bb65ef214241c27af171d11c339;hb=0ab517261694b001d2eb17f06f167a4cdd2c7c07;hp=6e988caa7148d64683cb0a8654218b36d634d2db;hpb=598ddfd9e5e0ea3fd368878e4bf8227014e478d5;p=apps%2Fmadmutt.git diff --git a/lib-mx/compress.c b/lib-mx/compress.c index 6e988ca..93a383d 100644 --- a/lib-mx/compress.c +++ b/lib-mx/compress.c @@ -266,7 +266,7 @@ static void restore_path (CONTEXT * ctx) /* 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); } @@ -296,13 +296,10 @@ int mutt_open_append_compressed (CONTEXT * ctx) 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; }