Mercurial > dovecot > core-2.2
diff src/lib-storage/mail-user.h @ 21404:80faa93d98de
lib-storage: Add struct mail_user.namespaces_created
This makes it easier to determine in mail_namespaces_added hook if the
namespaces being added are the initial ones or later ones.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Sat, 14 Jan 2017 16:12:56 +0200 |
parents | 3f32cdbe4b0a |
children | 3309fe3ea47b |
line wrap: on
line diff
--- a/src/lib-storage/mail-user.h Sat Jan 14 16:12:03 2017 +0200 +++ b/src/lib-storage/mail-user.h Sat Jan 14 16:12:56 2017 +0200 @@ -72,6 +72,9 @@ unsigned int autocreated:1; /* mail_user_init() has been called */ unsigned int initialized:1; + /* The initial namespaces have been created and + hook_mail_namespaces_created() has been called. */ + unsigned int namespaces_created:1; /* SET_STR_VARS in user's all settings have been expanded. This happens near the beginning of the user initialization, so this is rarely needed to be checked. */