Searched defs:prefix (Results 1 - 25 of 64) sorted by relevance

123

/dovecot/src/log/
H A Dlog-error-buffer.h9 const char *prefix; member in struct:log_error
/dovecot/src/old-stats/
H A Dmail-stats.c26 const char *prefix = t_strdup_printf("dovecot.%s.global", local
28 str_printfa(str, "%s.logins %u %"PRIdTIME_T"\r\n", prefix,
30 str_printfa(str, "%s.cmds %u %"PRIdTIME_T"\r\n", prefix,
33 prefix, mail_global_stats.num_connected_sessions,
36 prefix, mail_global_stats.reset_timestamp, ts);
39 str_printfa(str, "%s.%s ", prefix,
/dovecot/src/lib/
H A Dsafe-mkstemp.c16 safe_mkstemp_full(string_t *prefix, mode_t mode, uid_t uid, gid_t gid, argument
25 prefix_len = str_len(prefix);
29 str_truncate(prefix, prefix_len);
30 str_append(prefix,
32 } while (lstat(str_c(prefix), &st) == 0);
35 i_error("stat(%s) failed: %m", str_c(prefix));
36 str_truncate(prefix, prefix_len);
41 fd = open(str_c(prefix), O_RDWR | O_EXCL | O_CREAT, 0666);
48 i_error("open(%s) failed: %m", str_c(prefix));
49 str_truncate(prefix, prefix_le
74 safe_mkstemp(string_t *prefix, mode_t mode, uid_t uid, gid_t gid) argument
79 safe_mkstemp_group(string_t *prefix, mode_t mode, gid_t gid, const char *gid_origin) argument
85 safe_mkstemp_hostpid(string_t *prefix, mode_t mode, uid_t uid, gid_t gid) argument
96 safe_mkstemp_hostpid_group(string_t *prefix, mode_t mode, gid_t gid, const char *gid_origin) argument
[all...]
H A Dunlink-old-files.c15 unlink_old_files_real(const char *dir, const char *prefix, time_t min_time) argument
39 prefix_len = strlen(prefix);
47 if (strncmp(d->d_name, prefix, prefix_len) != 0)
65 int unlink_old_files(const char *dir, const char *prefix, time_t min_time) argument
70 ret = unlink_old_files_real(dir, prefix, min_time);
/dovecot/src/lib-smtp/
H A Dsmtp-reply.c47 const char *prefix, *enh_code; local
53 prefix = t_strdup_printf("%03u", reply->status);
57 str_append(out, prefix);
68 str_append(out, prefix);
/dovecot/src/lib-storage/
H A Dmail-search-args-imap.c19 const char *prefix, const char **error_r)
23 if (prefix[0] == '\0')
27 str_append(dest, prefix);
33 if (prefix[0] == '\0')
18 mail_search_subargs_to_imap(string_t *dest, const struct mail_search_arg *args, const char *prefix, const char **error_r) argument
H A Dmailbox-uidvalidity.c114 const char *fname, *dir, *prefix, *tmp; local
143 prefix = t_strconcat(fname, ".", NULL);
144 prefix_len = strlen(prefix);
151 if (strncmp(dp->d_name, prefix, prefix_len) == 0) {
H A Dmail-namespace.h25 /* Namespace is visible only by explicitly using its full prefix */
27 /* Namespace prefix is visible with LIST */
29 /* Namespace prefix isn't visible with LIST, but child mailboxes are */
48 /* Namespaces are sorted by their prefix length, "" comes first */
55 char *prefix; member in struct:mail_namespace
147 /* Returns namespace based on the mailbox name's prefix. Note that there is
148 always a prefix="" namespace, so for this function NULL is never returned. */
175 /* Find a namespace with given prefix. */
178 const char *prefix);
182 const char *prefix);
[all...]
H A Dmail-search-mime.c352 const char *prefix, const char **error_r)
356 if (prefix[0] == '\0')
360 str_append(dest, prefix);
366 if (prefix[0] == '\0')
350 mail_search_mime_subargs_to_imap(string_t *dest, const struct mail_search_mime_arg *args, const char *prefix, const char **error_r) argument
H A Dmailbox-attribute.c114 /* iattr isn't a prefix of key */
117 /* iattr is a prefix of key and it wants to handle the key */
126 const char *prefix, bool have_dict, ARRAY_TYPE(const_string) *attrs)
134 bare_prefix = t_strdup_noconst(prefix);
158 /* remove prefix */
377 enum mail_attribute_type type, const char *prefix)
385 iter = box->v.attribute_iter_init(box, type, prefix);
392 mailbox_internal_attributes_get(type, prefix, have_dict, &extra_attrs);
125 mailbox_internal_attributes_get(enum mail_attribute_type type, const char *prefix, bool have_dict, ARRAY_TYPE(const_string) *attrs) argument
376 mailbox_attribute_iter_init(struct mailbox *box, enum mail_attribute_type type, const char *prefix) argument
/dovecot/src/imap-login/
H A Dclient-authenticate.c122 char *prefix; local
124 prefix = i_strdup_printf("%d%s",
129 imap_client->common.master_data_prefix = (void *)prefix;
130 imap_client->common.master_data_prefix_len = strlen(prefix)+1;
/dovecot/src/lib-dict/
H A Dtest-dict-client.c33 const char *prefix, *uri; local
46 i_fatal("Usage: <prefix> <uri>");
47 prefix = argv[1];
58 i_snprintf(key, sizeof(key), "%s/%02x", prefix,
88 iter = dict_iterate_init(dict, prefix, DICT_ITERATE_FLAG_EXACT_KEY);
/dovecot/src/lib-fs/
H A Dfs-test.h34 char *prefix, *prev_dir; member in struct:test_fs_iter
/dovecot/src/submission-login/
H A Dclient-authenticate.c258 char *prefix; local
264 prefix = i_strdup(helo->domain == NULL ? "" : helo->domain);
268 client->master_data_prefix = (void *)prefix;
269 client->master_data_prefix_len = strlen(prefix) + 1;
/dovecot/src/plugins/acl/
H A Dacl-attributes.c167 const char *prefix)
178 attribute_iter_init(box, type, prefix);
181 strncmp(prefix, MAILBOX_ATTRIBUTE_PREFIX_ACL,
182 strlen(prefix)) == 0) {
166 acl_attribute_iter_init(struct mailbox *box, enum mail_attribute_type type, const char *prefix) argument
H A Dacl-lookup-dict.c155 const char *prefix, *key, *value, *const *old_ids, *const *new_ids, *p; local
169 prefix = DICT_PATH_SHARED DICT_SHARED_BOXES_PATH;
170 prefix_len = strlen(prefix);
171 iter = dict_iterate_init(dict->dict, prefix, DICT_ITERATE_FLAG_RECURSE);
173 /* prefix/$type/$dest/$source */
191 str_append(path, prefix);
266 const char *const *idp, *prefix, *key, *value, *error; local
273 prefix = t_strconcat(DICT_PATH_SHARED DICT_SHARED_BOXES_PATH,
275 prefix_len = strlen(prefix);
282 dict_iter = dict_iterate_init(iter->dict->dict, prefix,
[all...]
/dovecot/src/auth/
H A Dauth-fields.c117 void auth_fields_import_prefixed(struct auth_fields *fields, const char *prefix, argument
131 if (*prefix != '\0')
132 key = t_strconcat(prefix, key, NULL);
/dovecot/src/doveadm/
H A Ddoveadm-dict.c35 if (!doveadm_cmd_param_str(cctx, "prefix", &key) &&
215 const char *prefix, *key, *value, *error; local
225 (void)doveadm_cmd_param_str(cctx, "prefix", &prefix);
227 iter = dict_iterate_init(dict, prefix, iter_flags);
234 i_error("dict_iterate_deinit(%s) failed: %s", prefix, error);
286 .usage = "[-u <user>] [-1RV] <dict uri> <prefix>",
293 DOVEADM_CMD_PARAM('\0', "prefix", CMD_PARAM_STR, CMD_PARAM_FLAG_POSITIONAL)
/dovecot/src/lib-auth/
H A Dauth-client-request.c153 const char *prefix; local
155 prefix = t_strdup_printf("CONT\t%u\t", request->id);
157 iov[0].iov_base = prefix;
158 iov[0].iov_len = strlen(prefix);
/dovecot/src/lib-index/
H A Dmail-index-alloc-cache.c138 const char *index_dir, const char *prefix)
162 mail_index_alloc(parent_event, index_dir, prefix);
137 mail_index_alloc_cache_get(struct event *parent_event, const char *mailbox_path, const char *index_dir, const char *prefix) argument
/dovecot/src/lib-storage/index/dbox-common/
H A Ddbox-storage.c209 const char *prefix = local
211 (void)unlink_old_files(path, prefix,
/dovecot/src/lib-storage/index/
H A Dindex-attribute.c11 char *prefix; member in struct:index_storage_attribute_iter
253 const char *prefix)
265 iter->prefix = i_strdup(key_get_prefixed(type, mailbox_prefix,
266 prefix));
267 iter->prefix_len = strlen(iter->prefix);
268 iter->diter = dict_iterate_init(dict, iter->prefix,
285 i_assert(strncmp(key, iter->prefix, iter->prefix_len) == 0);
303 iter->prefix, error);
306 i_free(iter->prefix);
251 index_storage_attribute_iter_init(struct mailbox *box, enum mail_attribute_type type, const char *prefix) argument
/dovecot/src/lib-storage/index/shared/
H A Dshared-list.c48 /* trying to access the shared/ prefix itself */
83 i_panic("shared mailbox list: Can't return a temp prefix for '%s'",
84 list->ns->prefix);
92 const char *ns_ref, *prefix = list->ns->prefix; local
93 size_t prefix_len = strlen(prefix);
95 if (*ref != '\0' && strncmp(ref, prefix, prefix_len) == 0)
123 namespace prefix. we could also handle other patterns
125 if (strncmp(list->ns->prefix, patterns[i],
H A Dshared-storage.c58 wildcardp = strchr(ns->prefix, '%');
60 *error_r = "Shared namespace prefix doesn't contain %";
77 *error_r = "Shared namespace prefix contains unknown variables";
81 *error_r = "Shared namespace prefix doesn't contain %u or %n";
87 *error_r = "Shared namespace prefix doesn't end with hierarchy separator";
91 /* truncate prefix after the above checks are done, so they can log
92 the full prefix in error conditions */
94 ns->prefix_len = strlen(ns->prefix);
145 string_t *prefix, *location; local
185 /* trying to open <prefix>/<use
[all...]
/dovecot/src/master/
H A Dservice-monitor.c416 string_t *prefix = t_str_new(128); local
419 str_append(prefix, service->set->master_set->base_dir);
420 str_append(prefix, "/login-master-notify");
422 fd = safe_mkstemp(prefix, 0600, (uid_t)-1, (gid_t)-1);
423 path = str_c(prefix);

Completed in 28 milliseconds

123