Lines Matching refs:user
15 void (*deinit)(struct mail_user *user);
16 void (*deinit_pre)(struct mail_user *user);
17 void (*stats_fill)(struct mail_user *user, struct stats *stats);
35 mailbox users their creator is the logged in user. */
37 /* Set if user was created via mail_storage_service. */
56 /* If non-NULL, fail the user initialization with this error.
77 /* Either home is set or there is no home for the user. */
81 /* This is an autocreated user (e.g. for shared namespace or
89 /* SET_STR_VARS in user's all settings have been expanded.
90 This happens near the beginning of the user initialization,
97 /* Fuzzy search works for this user (FTS enabled) */
103 /* We're deinitializing the user */
105 /* Enable administrator user commands for the user */
135 int mail_user_init(struct mail_user *user, const char **error_r);
137 void mail_user_ref(struct mail_user *user);
138 void mail_user_unref(struct mail_user **user);
141 be called before the user is usable. */
142 struct mail_user *mail_user_dup(struct mail_user *user);
144 /* Find another user from the given user's namespaces. */
145 struct mail_user *mail_user_find(struct mail_user *user, const char *name);
148 void mail_user_set_vars(struct mail_user *user, const char *service,
150 /* Return %variable expansion table for the user. */
152 mail_user_var_expand_table(struct mail_user *user);
154 /* Specify the user's home directory. This should be called also when it's
155 known that the user doesn't have a home directory to avoid the internal
157 void mail_user_set_home(struct mail_user *user, const char *home);
158 /* Get the home directory for the user. Returns 1 if home directory looked up
159 successfully, 0 if there is no home directory (either user doesn't exist or
161 int mail_user_get_home(struct mail_user *user, const char **home_r);
167 int mail_user_lock_file_create(struct mail_user *user, const char *lock_fname,
171 /* Returns TRUE if plugin is loaded for the user. */
172 bool mail_user_is_plugin_loaded(struct mail_user *user, struct module *module);
174 const char *mail_user_plugin_getenv(struct mail_user *user, const char *name);
175 bool mail_user_plugin_getenv_bool(struct mail_user *user, const char *name);
181 /* Add more namespaces to user's namespaces. The ->next pointers may be
182 changed, so the namespaces pointer will be updated to user->namespaces. */
183 void mail_user_add_namespace(struct mail_user *user,
186 void mail_user_drop_useless_namespaces(struct mail_user *user);
188 /* Replace ~/ at the beginning of the path with the user's home directory. */
189 const char *mail_user_home_expand(struct mail_user *user, const char *path);
191 int mail_user_try_home_expand(struct mail_user *user, const char **path);
192 /* Returns unique user+ip identifier for anvil. */
193 const char *mail_user_get_anvil_userip_ident(struct mail_user *user);
198 mail_user_get_storage_class(struct mail_user *user, const char *name);
201 void mail_user_init_ssl_client_settings(struct mail_user *user,
205 void mail_user_init_fs_settings(struct mail_user *user,
209 /* Fill statistics for user. By default there are no statistics, so stats
211 void mail_user_stats_fill(struct mail_user *user, struct stats *stats);