X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mx.h;h=f2a4e59b1922785564be9cc9688b8fcac54876af;hp=828c4b8de44888b735564253bd39569360f7df86;hb=34a88259726b0a7dacc3affe6f37214f893c9ce3;hpb=8e6b42b9b28f646a6764936d80bda04647d5b45f 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);