X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mbox.c;h=dedf7c67ea123c921b5f54d3dbfba6b1c9b329fc;hp=dc900e4139b742969df91e59e8f7a5d3bc8b2469;hb=6e0187ce721be4997bef32d724528f8976df89d6;hpb=2f07c6b3c1987ae22529a8e7bf9084d5ea590542 diff --git a/mbox.c b/mbox.c index dc900e4..dedf7c6 100644 --- a/mbox.c +++ b/mbox.c @@ -24,6 +24,10 @@ #include "sort.h" #include "copy.h" +#ifdef USE_COMPRESSED +#include "compress.h" +#endif + #include #include #include @@ -1016,6 +1020,12 @@ bail: /* Come here in case of disaster */ int mbox_close_mailbox (CONTEXT *ctx) { mx_unlock_file (ctx->path, fileno (ctx->fp), 1); + +#ifdef USE_COMPRESSED + if (ctx->compressinfo) + mutt_slow_close_compressed (ctx); +#endif + mutt_unblock_signals (); mx_fastclose_mailbox (ctx); return 0;