X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mx.h;h=f2a4e59b1922785564be9cc9688b8fcac54876af;hp=828c4b8de44888b735564253bd39569360f7df86;hb=b2a6a9673e124c222f921650a6f0025b64ab2145;hpb=cdd5dd2b406b2af4359f7b1e7360d0c9aba13777;ds=sidebyside diff --git a/mx.h b/mx.h index 828c4b8..f2a4e59 100644 --- a/mx.h +++ b/mx.h @@ -17,6 +17,8 @@ #ifndef _MX_H #define _MX_H +#include + /* * supported mailbox formats * in mx_init() the registration order must be exactly as given here!!!1! @@ -68,7 +70,7 @@ typedef struct { /* may we stat() it? */ unsigned int local : 1; /* tests if given path is of its magic */ - int (*mx_is_magic) (const char*); + int (*mx_is_magic) (const char*, struct stat*); /* tests if folder is empty */ int (*mx_check_empty) (const char*); /* test for access */ @@ -136,8 +138,14 @@ int mx_close_mailbox (CONTEXT *, int *); int mx_sync_mailbox (CONTEXT *, int *); int mx_commit_message (MESSAGE *, CONTEXT *); int mx_close_message (MESSAGE **); -int mx_get_magic (const char *); + +/* determines magic for given folder */ +int mx_get_magic (const char*); +/* sets/parses DefaultMagic */ int mx_set_magic (const char *); +/* tests whether given folder magic is (valid and) local */ +int mx_is_local (int); + int mx_check_mailbox (CONTEXT *, int *, int); int mx_access (const char *, int);