mail_user->gid = priv->gid == (gid_t)-1 ? getegid() : priv->gid;
mail_user->anonymous = user->anonymous;
mail_user->admin = user->admin;
+ mail_user->auth_mech = p_strdup(mail_user->pool, user->auth_mech);
mail_user->auth_token = p_strdup(mail_user->pool, user->auth_token);
mail_user->auth_user = p_strdup(mail_user->pool, user->auth_user);
if (user->input.session_create_time != 0) {
user2->gid = user->gid;
user2->anonymous = user->anonymous;
user2->admin = user->admin;
+ user2->auth_mech = p_strdup(user2->pool, user->auth_mech);
user2->auth_token = p_strdup(user2->pool, user->auth_token);
user2->auth_user = p_strdup(user2->pool, user->auth_user);
user2->session_id = p_strdup(user2->pool, user->session_id);
const char *service;
const char *session_id;
struct mail_user_connection_data conn;
- const char *auth_token, *auth_user;
+ const char *auth_mech, *auth_token, *auth_user;
const char *const *userdb_fields;
/* Timestamp when this session was initially created. Most importantly
this stays the same after IMAP client is hibernated and restored. */