Lines Matching refs:pool

58 		    const struct mail_user_settings *set, pool_t pool)
66 user = p_new(pool, struct mail_user, 1);
67 user->pool = pool;
69 user->username = p_strdup(pool, username);
72 user->set = settings_dup_with_pointers(set_info, user->unexpanded_set, pool);
82 if (!settings_check(set_info, pool, user->set, &error))
88 p_array_init(&user->module_contexts, user->pool, 5);
98 pool_t pool;
100 pool = pool_alloconly_create(MEMPOOL_GROWING"mail user", 16*1024);
101 return mail_user_alloc_int(parent_event, username, set_info, set, pool);
109 pool_t pool;
111 pool = pool_alloconly_create(MEMPOOL_GROWING"mail user", 16*1024);
113 settings_dup(set_info, set, pool), pool);
133 user->error = p_strdup_printf(user->pool,
144 user->error = p_strdup_printf(user->pool,
149 envs[i+1] = p_strdup(user->pool, str_c(str));
163 user->error = p_strdup_printf(user->pool,
170 user->pool, mail_user_var_expand_table(user),
173 user->error = p_strdup_printf(user->pool,
223 pool_unref(&user->pool);
239 pool_t pool, const struct mail_user_connection_data *src)
244 conn->local_ip = p_new(pool, struct ip_addr, 1);
248 conn->remote_ip = p_new(pool, struct ip_addr, 1);
258 user->service = p_strdup(user->pool, service);
261 mail_user_connection_init_from(&user->conn, user->pool, conn);
279 p_strdup(user->pool, t_strcut(user->username, '@'));
282 p_strdup(user->pool, net_ip2addr(user->conn.local_ip));
284 p_strdup(user->pool, net_ip2addr(user->conn.remote_ip));
294 p_strdup(user->pool, t_strcut(user->auth_user, '@'));
307 { 'i', p_strdup(user->pool, dec2str(user->uid)), "uid" },
308 { '\0', p_strdup(user->pool, dec2str(user->gid)), "gid" },
319 tab = p_malloc(user->pool, sizeof(stack_tab));
339 user->_home = p_strdup(user->pool, home);
413 user->_home = p_strdup(user->pool, reply.home);
442 user->_home = p_strdup(user->pool, str_c(str));
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);
685 p_strarray_dup(user2->pool, user->userdb_fields);