Lines Matching refs:user2
665 struct mail_user *user2;
667 user2 = mail_user_alloc(event_get_parent(user->event), user->username,
669 if (user2->_service_user != NULL) {
670 user2->_service_user = user->_service_user;
671 mail_storage_service_user_ref(user2->_service_user);
674 mail_user_set_home(user2, user->_home);
675 mail_user_set_vars(user2, user->service, &user->conn);
676 user2->uid = user->uid;
677 user2->gid = user->gid;
678 user2->anonymous = user->anonymous;
679 user2->admin = user->admin;
680 user2->auth_token = p_strdup(user2->pool, user->auth_token);
681 user2->auth_user = p_strdup(user2->pool, user->auth_user);
682 user2->session_id = p_strdup(user2->pool, user->session_id);
683 user2->session_create_time = user->session_create_time;
684 user2->userdb_fields = user->userdb_fields == NULL ? NULL :
685 p_strarray_dup(user2->pool, user->userdb_fields);
686 return user2;