X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=mx.h;fp=mx.h;h=57de519b5b91a62ec51006eaa9facca2950a9b81;hb=9a1805afc94b21d8766e6e67ef57f92aaf966e84;hp=f2a4e59b1922785564be9cc9688b8fcac54876af;hpb=57c0b219e1b899b31397f355dd7b84e8c03a5094;p=apps%2Fmadmutt.git diff --git a/mx.h b/mx.h index f2a4e59..57de519 100644 --- a/mx.h +++ b/mx.h @@ -18,6 +18,7 @@ #define _MX_H #include +#include /* * supported mailbox formats @@ -80,6 +81,10 @@ typedef struct { /* check ACL flags; if not implemented, always assume granted * permissions */ int (*mx_acl_check) (CONTEXT*, int); + /* fast closing */ + void (*mx_fastclose_mailbox) (CONTEXT*); + /* write out changes */ + int (*mx_sync_mailbox) (CONTEXT*, int, int*); } mx_t; /* called from main: init all folder types */ @@ -91,8 +96,9 @@ void mx_init (void); #define M_READONLY (1<<2) /* open in read-only mode */ #define M_QUIET (1<<3) /* do not print any messages */ #define M_NEWFOLDER (1<<4) /* create a new folder - same as M_APPEND, but uses - * safe_fopen() for mbox-style folders. - */ + * safe_fopen() for mbox-style folders. */ +#define M_COUNT (1<<5) /* just do counting? needed to do speed optimizations + for sidebar */ /* mx_open_new_message() */ #define M_ADD_FROM 1 /* add a From_ line */