mail-storage-service.h revision 47e9fdee55c2074425cf0316f4f64fbbb790301c
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen /* Fail if we don't drop root privileges */
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen MAIL_STORAGE_SERVICE_FLAG_DISALLOW_ROOT = 0x01,
be5c76fabc7439fd33bc799bc3ab3f570799977bTimo Sirainen /* Lookup user from userdb */
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen MAIL_STORAGE_SERVICE_FLAG_USERDB_LOOKUP = 0x02,
b0e9375a1ff97c9c7d40655922af5ccc73ecaa76Timo Sirainen /* Force mail_debug=yes */
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen /* Keep the current process permissions */
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen MAIL_STORAGE_SERVICE_FLAG_NO_RESTRICT_ACCESS = 0x08
b624773984e35dd894db8dff976c1a2114c70782Timo Sirainenmail_storage_service_init_user(struct master_service *service, const char *user,
5afc76d0215c5f7631dec06ef864d59f0686a0a8Timo Sirainen const struct setting_parser_info *set_roots[],
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainenmail_storage_service_multi_init(struct master_service *service,
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen const struct setting_parser_info *set_roots[],
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen/* Returns 1 if ok, 0 if user wasn't found, -1 if error. */
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainenint mail_storage_service_multi_lookup(struct mail_storage_service_multi_ctx *ctx,
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen struct mail_storage_service_multi_user **user_r,
3a7113e3e2dac0e333e1a3f62af7d682896f59c6Timo Sirainen const char **error_r);
c0757c70cfd2c9b44de3504b753a4d2f38690ef0Timo Sirainenint mail_storage_service_multi_next(struct mail_storage_service_multi_ctx *ctx,
0dffa25d211be541ee3c953b23566a1a990789dfTimo Sirainen const char **error_r);
0dffa25d211be541ee3c953b23566a1a990789dfTimo Sirainenvoid mail_storage_service_multi_deinit(struct mail_storage_service_multi_ctx **ctx);
2e29e4797a48d78d669821722bdb54fd0a1d3b94Timo Sirainen/* Return the settings pointed to by set_root parameter in _init().
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen The settings contain all the changes done by userdb lookups. */
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainenvoid *mail_storage_service_multi_user_get_set(struct mail_storage_service_multi_user *user);
43d3ea2780b5f8557ede7b4c039e8f56cb8d357dTimo Sirainen/* Return the settings pointed to by set_root parameter in _init() */