mail-storage-service.h revision 367e28a16854ee9f7247b2518f36f5e9163fcc10
#ifndef MAIL_STORAGE_SERVICE_H
#define MAIL_STORAGE_SERVICE_H
enum mail_storage_service_flags {
/* Fail if we don't drop root privileges */
/* Lookup user from userdb */
/* Force mail_debug=yes */
MAIL_STORAGE_SERVICE_FLAG_DEBUG = 0x04,
/* Keep the current process permissions */
};
struct setting_parser_info;
struct mail_storage_service_multi_user;
struct mail_user *
const struct setting_parser_info *set_roots[],
enum mail_storage_service_flags flags);
void mail_storage_service_deinit_user(void);
struct mail_storage_service_multi_ctx *
const struct setting_parser_info *set_roots[],
enum mail_storage_service_flags flags);
/* Returns 1 if ok, 0 if user wasn't found, -1 if error. */
struct mail_storage_service_multi_user **user_r,
const char **error_r);
struct mail_storage_service_multi_user *user,
struct mail_user **mail_user_r,
const char **error_r);
/* Return the settings pointed to by set_root parameter in _init() */
#endif