-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 */
+mx_t const compress_mx = {
+ M_COMPRESSED,
+ 1,
+ mbox_is_magic,
+ mbox_check_empty,
+ access,
+ mutt_open_read_compressed,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+};