Searched refs:set (Results 1 - 25 of 478) sorted by relevance

1234567891011>>

/dovecot/src/lib-smtp/
H A Dsmtp-server.c23 struct smtp_server *smtp_server_init(const struct smtp_server_settings *set) argument
31 server->set.protocol = set->protocol;
32 server->set.rawlog_dir = p_strdup_empty(pool, set->rawlog_dir);
33 if (set->hostname != NULL && *set->hostname != '\0')
34 server->set.hostname = p_strdup(pool, set->hostname);
36 server->set
[all...]
H A Dsmtp-client.c25 struct smtp_client *smtp_client_init(const struct smtp_client_settings *set) argument
34 client->set.my_ip = set->my_ip;
35 client->set.my_hostname = p_strdup(pool, set->my_hostname);
36 client->set.dns_client = set->dns_client;
37 client->set.dns_client_socket_path =
38 p_strdup(pool, set->dns_client_socket_path);
39 client->set
[all...]
/dovecot/src/lib-http/
H A Dhttp-client.c103 const struct http_client_settings *set)
122 client->cctx = cctx = http_client_context_create(set);
127 if (set != NULL && set->event != NULL)
128 parent_event = set->event;
138 if ((set != NULL && set->debug) || (cctx != NULL && cctx->set.debug))
143 client->set = cctx->set;
102 http_client_init_shared(struct http_client_context *cctx, const struct http_client_settings *set) argument
229 http_client_init(const struct http_client_settings *set) argument
235 http_client_init_private(const struct http_client_settings *set) argument
428 http_client_context_create(const struct http_client_settings *set) argument
552 http_client_get_dns_lookup_timeout_msecs(const struct http_client_settings *set) argument
721 struct http_client_settings set; local
[all...]
H A Dhttp-server.c23 struct http_server *http_server_init(const struct http_server_settings *set) argument
31 if (set->rawlog_dir != NULL && *set->rawlog_dir != '\0')
32 server->set.rawlog_dir = p_strdup(pool, set->rawlog_dir);
33 server->set.max_client_idle_time_msecs = set->max_client_idle_time_msecs;
34 server->set.max_pipelined_requests =
35 (set->max_pipelined_requests > 0 ? set
[all...]
/dovecot/src/plugins/expire/
H A Dexpire-set.c6 #include "expire-set.h"
16 struct expire_set *set; local
22 set = p_new(pool, struct expire_set, 1);
23 set->pool = pool;
24 p_array_init(&set->globs, set->pool, 16);
27 glob = imap_match_init(set->pool, *pattern, TRUE, '/');
28 array_append(&set->globs, &glob, 1);
30 return set;
35 struct expire_set *set local
41 expire_set_lookup(struct expire_set *set, const char *mailbox) argument
[all...]
H A Dexpire-set.h7 void expire_set_deinit(struct expire_set **set);
9 bool expire_set_lookup(struct expire_set *set, const char *mailbox);
/dovecot/src/lib-master/
H A Dmaster-service-ssl.c19 const struct master_service_ssl_settings *set; local
29 set = master_service_ssl_settings_get(service);
32 ssl_set.verbose = set->verbose_ssl;
33 ssl_set.verify_remote_cert = set->ssl_verify_client_cert;
45 const struct master_service_ssl_settings *set; local
57 set = master_service_ssl_settings_get(service);
58 if (strcmp(set->ssl, "no") == 0) {
64 ssl_set.min_protocol = set->ssl_min_protocol;
65 ssl_set.cipher_list = set->ssl_cipher_list;
66 ssl_set.curve_list = set
[all...]
/dovecot/src/lib-storage/
H A Dmailbox-attribute-internal.c18 const struct mailbox_settings *set = box->set; local
20 if (set == NULL || *set->special_use == '\0')
23 value_r->value = set->special_use;
43 const struct mailbox_settings *set = box->set; local
45 if (set == NULL || *set->comment == '\0')
47 value_r->value = set
80 const struct mail_storage_settings *set = box->storage->set; local
105 const struct mail_storage_settings *set = box->storage->set; local
[all...]
H A Dfail-mail-storage.c26 struct mailbox_list_settings *set)
28 if (set->layout == NULL)
29 set->layout = "fail";
30 if (set->subscription_fname == NULL)
31 set->subscription_fname = "subscriptions";
25 fail_storage_get_list_settings(const struct mail_namespace *ns ATTR_UNUSED, struct mailbox_list_settings *set) argument
/dovecot/src/imap/
H A Dcmd-id.c8 const struct imap_settings *set = cmd->client->set; local
17 value = imap_id_args_get_log_reply(args, set->imap_id_log);
23 "* ID %s", imap_id_reply_generate(set->imap_id_send)));
H A Dimap-search-args.h17 /* Returns -1 if set is invalid, 0 if we have to wait for unambiguity,
18 1 if we were successful. search_args_r is set to contain either a seqset
21 const char *set, bool uid,
25 const char *set, bool uid,
/dovecot/src/lib/
H A Dlog-throttle.c9 struct log_throttle_settings set; member in struct:log_throttle
21 log_throttle_init(const struct log_throttle_settings *set, argument
26 i_assert(set->throttle_at_max_per_interval > 0);
27 i_assert(set->unthrottle_at_max_per_interval > 0);
30 throttle->set = *set;
31 if (throttle->set.interval_msecs == 0)
32 throttle->set.interval_msecs = 1000;
51 if (throttle->last_count < throttle->set.unthrottle_at_max_per_interval)
64 (int)throttle->set
[all...]
H A Dfile-create-locked.c22 const struct file_create_settings *set,
32 if (file_wait_lock_error(fd, path, F_WRLCK, set->lock_method,
33 set->lock_timeout_secs, lock_r, error_r) <= 0)
52 try_mkdir(const char *path, const struct file_create_settings *set, argument
55 uid_t uid = set->mkdir_uid != 0 ? set->mkdir_uid : (uid_t)-1;
56 gid_t gid = set->mkdir_gid != 0 ? set->mkdir_gid : (gid_t)-1;
64 ret = mkdir_parents_chown(dir, set->mkdir_mode, uid, gid);
66 ret = mkdir_parents_chgrp(dir, set
21 try_lock_existing(int fd, const char *path, const struct file_create_settings *set, struct file_lock **lock_r, const char **error_r) argument
77 try_create_new(const char *path, const struct file_create_settings *set, int *fd_r, struct file_lock **lock_r, const char **error_r) argument
137 file_create_locked(const char *path, const struct file_create_settings *set, struct file_lock **lock_r, bool *created_r, const char **error_r) argument
[all...]
H A Dlog-throttle.h19 log_throttle_init(const struct log_throttle_settings *set,
21 #define log_throttle_init(set, callback, context) \
22 log_throttle_init(set + \
H A Drestrict-access.c24 void restrict_access_init(struct restrict_access_settings *set) argument
26 i_zero(set);
28 set->uid = (uid_t)-1;
29 set->gid = (gid_t)-1;
30 set->privileged_gid = (gid_t)-1;
68 /* everything is already set */
81 "process group set to %s instead of %s)",
136 static void drop_restricted_groups(const struct restrict_access_settings *set, argument
144 if (gid_list[i] >= set->first_valid_gid &&
145 (set
173 fix_groups_list(const struct restrict_access_settings *set, bool preserve_existing, bool *have_root_group) argument
239 get_setuid_error_str(const struct restrict_access_settings *set, uid_t target_uid) argument
258 restrict_access(const struct restrict_access_settings *set, enum restrict_access_flags flags, const char *home) argument
379 restrict_access_set_env(const struct restrict_access_settings *set) argument
454 struct restrict_access_settings set; local
[all...]
/dovecot/src/auth/
H A Dpassdb-imap.c16 struct imapc_client_settings set; member in struct:imap_passdb_module
89 struct imapc_client_settings set; local
93 set = module->set;
94 set.debug = auth_request->debug;
95 set.dns_client_socket_path =
96 t_strconcat(auth_request->set->base_dir, "/",
98 set.password = password;
99 set.max_idle_time = IMAPC_DEFAULT_MAX_IDLE_TIME;
100 if (set
[all...]
/dovecot/src/plugins/fts-lucene/
H A Dfts-lucene-plugin.c17 struct fts_lucene_settings *set,
24 set->default_language =
27 set->textcat_conf = p_strdup(user->pool, *tmp + 13);
29 set->textcat_dir = p_strdup(user->pool, *tmp + 12);
31 set->whitespace_chars = p_strdup(user->pool, *tmp + 17);
33 set->normalize = TRUE;
35 set->no_snowball = TRUE;
37 set->mime_parts = TRUE;
39 set->use_libfts = TRUE;
45 if (set
16 fts_lucene_plugin_init_settings(struct mail_user *user, struct fts_lucene_settings *set, const char *str) argument
75 fts_lucene_settings_checksum(const struct fts_lucene_settings *set) argument
[all...]
/dovecot/src/master/
H A Dmaster-settings.c251 const struct master_settings *set)
257 *user = set->default_internal_user;
260 *user = set->default_login_user;
268 expand_group(const char **group, const struct master_settings *set) argument
274 *group = set->default_internal_group;
291 struct file_listener_settings *set = *sets; local
293 if (set->path[0] == '\0') {
298 expand_user(&set->user, &user_default, master_set);
299 expand_group(&set->group, master_set);
300 if (*set
250 expand_user(const char **user, enum service_user_default *default_r, const struct master_settings *set) argument
325 struct inet_listener_settings *set = *sets; local
334 master_settings_parse_type(struct service_settings *set, const char **error_r) argument
357 service_set_login_dump_core(struct service_settings *set) argument
370 services_have_protocol(struct master_settings *set, const char *name) argument
399 service_get_client_limit(struct master_settings *set, const char *name) argument
418 struct master_settings *set = _set; local
642 login_want_core_dumps(const struct master_settings *set, gid_t *gid_r) argument
666 settings_have_auth_unix_listeners_in(const struct master_settings *set, const char *dir) argument
742 mkdir_login_dir(const struct master_settings *set, const char *login_dir) argument
767 master_settings_do_fixes(const struct master_settings *set) argument
[all...]
H A Dservice.c30 i_error("service(%s): %s", service->set->name,
38 const struct file_listener_settings *set,
49 l->set.fileset.set = set;
50 l->name = strrchr(set->path, '/');
54 l->name = set->path;
56 if (get_uidgid(set->user, &l->set.fileset.uid, &gid, error_r) < 0)
58 else if (get_gid(set
36 service_create_file_listener(struct service *service, enum service_listener_type type, const struct file_listener_settings *set, const char **error_r) argument
116 service_create_one_inet_listener(struct service *service, const struct inet_listener_settings *set, const char *address, const struct ip_addr *ip) argument
137 service_create_inet_listeners(struct service *service, const struct inet_listener_settings *set, const char **error_r) argument
200 service_create(pool_t pool, const struct service_settings *set, struct service_list *service_list, const char **error_r) argument
390 service_want(struct service_settings *set) argument
412 services_create_real(const struct master_settings *set, pool_t pool, struct service_list **services_r, const char **error_r) argument
488 services_create(const struct master_settings *set, struct service_list **services_r, const char **error_r) argument
[all...]
/dovecot/src/lib-ssl-iostream/
H A Diostream-ssl-context-cache.c9 struct ssl_iostream_settings set; member in struct:ssl_iostream_context_cache
20 const char *const cert[] = { cache->set.cert.cert, cache->set.alt_cert.cert };
46 return ssl_iostream_settings_equals(&c1->set, &c2->set) ? 0 : -1;
50 ssl_iostream_context_cache_get(const struct ssl_iostream_settings *set, argument
59 .set = *set,
70 ssl_iostream_settings_drop_stream_only(&lookup.set);
81 if (ssl_iostream_context_init_server(&lookup.set,
100 ssl_iostream_client_context_cache_get(const struct ssl_iostream_settings *set, struct ssl_iostream_context **ctx_r, const char **error_r) argument
107 ssl_iostream_server_context_cache_get(const struct ssl_iostream_settings *set, struct ssl_iostream_context **ctx_r, const char **error_r) argument
[all...]
H A Diostream-openssl-context.c82 int openssl_iostream_load_key(const struct ssl_iostream_cert *set, argument
90 key = t_strdup_noconst(set->key);
99 ctx.password = set->key_password;
116 int openssl_iostream_load_dh(const struct ssl_iostream_settings *set, argument
123 dhvalue = t_strdup_noconst(set->dh);
146 const struct ssl_iostream_cert *set,
152 if (openssl_iostream_load_key(set, &pkey, error_r) < 0)
166 const struct ssl_iostream_settings *set,
172 if (openssl_iostream_load_dh(set, &dh, error_r) < 0)
204 /* If we could set u
145 ssl_iostream_ctx_use_key(struct ssl_iostream_context *ctx, const struct ssl_iostream_cert *set, const char **error_r) argument
165 ssl_iostream_ctx_use_dh(struct ssl_iostream_context *ctx, const struct ssl_iostream_settings *set, const char **error_r) argument
319 ssl_iostream_context_load_ca(struct ssl_iostream_context *ctx, const struct ssl_iostream_settings *set, const char **error_r) argument
362 ssl_iostream_context_set(struct ssl_iostream_context *ctx, const struct ssl_iostream_settings *set, const char **error_r) argument
457 ssl_proxy_ctx_get_pkey_ec_curve_name(const struct ssl_iostream_settings *set, int *nid_r, const char **error_r) argument
556 ssl_iostream_context_init_common(struct ssl_iostream_context *ctx, const struct ssl_iostream_settings *set, const char **error_r) argument
585 openssl_iostream_context_init_client(const struct ssl_iostream_settings *set, struct ssl_iostream_context **ctx_r, const char **error_r) argument
611 openssl_iostream_context_init_server(const struct ssl_iostream_settings *set, struct ssl_iostream_context **ctx_r, const char **error_r) argument
659 openssl_iostream_global_init(const struct ssl_iostream_settings *set, const char **error_r) argument
[all...]
/dovecot/src/plugins/autocreate/
H A Dautocreate-plugin.c19 array_foreach(&ns->set->mailboxes, box_set) {
30 struct mailbox_settings *set; local
46 if (array_is_created(&ns->set->mailboxes))
47 tmp_ns_set.mailboxes = ns->set->mailboxes;
50 /* work around ns->set being a const pointer. pretty ugly, but
52 memcpy((void *)&ns->set->mailboxes.arr, &tmp_ns_set.mailboxes.arr,
53 sizeof(ns->set->mailboxes.arr));
58 set = mailbox_settings_find(ns, vname);
59 if (set == NULL) {
60 set
[all...]
/dovecot/src/plugins/mail-crypt/
H A Dmail-crypt-pluginenv.c35 const char *mail_crypt_plugin_getenv(const struct fs_crypt_settings *set, argument
41 if (set == NULL)
44 if (!array_is_created(&set->plugin_envs))
47 envs = array_get(&set->plugin_envs, &count);
56 mail_crypt_load_global_private_keys(const struct fs_crypt_settings *set, argument
68 while ((key_data = mail_crypt_plugin_getenv(set, str_c(set_key))) != NULL) {
70 const char *password = mail_crypt_plugin_getenv(set, set_pw);
85 const struct fs_crypt_settings *set = fs_crypt_load_settings(); local
88 const char *key_data = mail_crypt_plugin_getenv(set, set_key);
99 mail_crypt_load_global_private_keys(set, set_prefi
[all...]
/dovecot/src/lib-storage/list/
H A Dmailbox-list-fs.c50 fs_list_get_path_to(const struct mailbox_list_settings *set, argument
53 if (*set->maildir_name != '\0' && set->index_control_use_maildir_name) {
55 set->mailbox_dir_name, name,
56 set->maildir_name);
59 set->mailbox_dir_name, name);
67 const struct mailbox_list_settings *set = &_list->set; local
72 return mailbox_list_set_get_root_path(set, type, path_r) ? 1 : 0;
79 *set
190 fs_list_set_subscribed(struct mailbox_list *_list, const char *name, bool set) argument
[all...]
/dovecot/src/replication/aggregator/
H A Daggregator.c23 const struct aggregator_settings *set; local
28 set = sets[0];
30 if (set->replicator_port != 0) {
31 ret = net_gethostbyname(set->replicator_host, &ips, &ips_count);
34 set->replicator_host, net_gethosterror(ret));
37 set->replicator_port,
40 replicator = replicator_connection_create_unix(set->replicator_host,

Completed in 107 milliseconds

1234567891011>>