Mercurial > dovecot > original-hg > dovecot-1.2
diff src/lib-storage/mail-storage.h @ 3033:146897976cfa HEAD
Added mail_debug setting. Moved full_filesystem_access from global variable
to flag in mail_create*() functions.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 29 Dec 2004 21:10:25 +0200 |
parents | 61c8d205d887 |
children | 66c44404f9a1 |
line wrap: on
line diff
--- a/src/lib-storage/mail-storage.h Wed Dec 29 21:09:21 2004 +0200 +++ b/src/lib-storage/mail-storage.h Wed Dec 29 21:10:25 2004 +0200 @@ -5,6 +5,13 @@ #include "mail-types.h" +enum mail_storage_flags { + /* Print debugging information while initializing the storage */ + MAIL_STORAGE_FLAG_DEBUG = 0x01, + /* Allow full filesystem access with absolute or relative paths. */ + MAIL_STORAGE_FLAG_FULL_FS_ACCESS = 0x02 +}; + enum mailbox_open_flags { MAILBOX_OPEN_READONLY = 0x01, MAILBOX_OPEN_FAST = 0x02, @@ -156,8 +163,6 @@ typedef void mailbox_notify_callback_t(struct mailbox *box, void *context); -extern int full_filesystem_access; - void mail_storage_init(void); void mail_storage_deinit(void); @@ -176,12 +181,15 @@ If namespace is non-NULL, all mailbox names are expected to begin with it. hierarchy_sep overrides the default separator if it's not '\0'. */ struct mail_storage * -mail_storage_create(const char *name, const char *data, const char *user); +mail_storage_create(const char *name, const char *data, const char *user, + enum mail_storage_flags flags); void mail_storage_destroy(struct mail_storage *storage); -struct mail_storage *mail_storage_create_default(const char *user); +struct mail_storage * +mail_storage_create_default(const char *user, enum mail_storage_flags flags); struct mail_storage * -mail_storage_create_with_data(const char *data, const char *user); +mail_storage_create_with_data(const char *data, const char *user, + enum mail_storage_flags flags); char mail_storage_get_hierarchy_sep(struct mail_storage *storage);