This allows fixing stats plugin to update stats also for shared mailboxes.
That's a bit complicated change though, so I'm not sure how soon it'll
happen. But at least this change makes it possible more easily later on.
Might have other uses too.
owner = mail_user_alloc(userdomain, user->set_info,
user->unexpanded_set);
+ owner->creator = user;
owner->autocreated = TRUE;
owner->session_id = p_strdup(owner->pool, user->session_id);
if (mail_user_init(owner, &error) < 0) {
struct mail_user_vfuncs v, *vlast;
int refcount;
+ /* User's creator if such exists. For example for autocreated shared
+ mailbox users their creator is the logged in user. */
+ struct mail_user *creator;
+
const char *username;
/* don't access the home directly. It may be set lazily. */
const char *_home;