X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=compress.c;h=b7439f624d5ce356dc10dec79a0234c00b02e1db;hp=18972548195566840360d601dfdbcd10e025c726;hb=25bf57d598476b329536fa3f748cc0c529fef6bd;hpb=ee1d4d931ca3ebec494694b74a1868a7a2e631e3 diff --git a/compress.c b/compress.c index 1897254..b7439f6 100644 --- a/compress.c +++ b/compress.c @@ -12,6 +12,7 @@ #ifdef USE_COMPRESSED #include "mx.h" +#include "mbox.h" #include "mutt_curses.h" #include "lib/mem.h" @@ -476,4 +477,15 @@ int mutt_slow_close_compressed (CONTEXT * ctx) return (0); } +mx_t* compress_reg_mx (void) { + mx_t* fmt = safe_calloc (1, sizeof (mx_t)); + fmt->type = M_COMPRESSED; + fmt->local = 1; + fmt->mx_is_magic = mbox_is_magic; + fmt->mx_check_empty = mbox_check_empty; + fmt->mx_access = access; + fmt->mx_open_mailbox = mutt_open_read_compressed; + return (fmt); +} + #endif /* USE_COMPRESSED */