Searched defs:field (Results 1 - 25 of 58) sorted by relevance

123

/dovecot/src/auth/
H A Ddb-dict-cache-key.c27 const struct db_dict_field *field; local
34 array_foreach(fields, field) {
35 for (p = field->value; *p != '\0'; ) {
H A Dauth-fields.c61 struct auth_field *field; local
72 field = array_append_space(&fields->fields);
73 field->key = p_strdup(fields->pool, key);
76 field = array_idx_modifiable(&fields->fields, idx);
78 field->value = p_strdup_empty(fields->pool, value);
79 field->flags = flags | AUTH_FIELD_FLAG_CHANGED;
94 const struct auth_field *field; local
100 field = array_idx(&fields->fields, idx);
101 return field->value == NULL ? "" : field
188 struct auth_field *field; local
199 struct auth_field *field; local
[all...]
H A Ddb-checkpassword.c54 const struct auth_field *field; local
57 array_foreach(extra_fields, field) {
58 key = t_str_ucase(field->key);
59 value = field->value != NULL ? field->value : "1";
/dovecot/src/lib-oauth2/
H A Doauth2.c35 struct oauth2_field *field = local
37 field->name = req->field_name;
39 field->value = p_strdup(req->pool, token);
H A Doauth2-refresh.c26 oauth2_refresh_field_parse(const struct oauth2_field *field, argument
29 if (strcasecmp(field->name, "expires_in") == 0) {
31 if (str_to_uint32(field->value, &expires_in) < 0) {
35 field->value);
40 } else if (strcasecmp(field->name, "token_type") == 0) {
41 if (strcasecmp(field->value,"bearer") != 0) {
45 field->value);
48 } else if (strcasecmp(field->name, "access_token") == 0) {
50 res->bearer_token = field->value;
66 const struct oauth2_field *field; local
[all...]
H A Doauth2-token-validate.c40 const struct oauth2_field *field; local
42 array_foreach(&req->fields, field) {
43 if (strcasecmp(field->name, "expires_in") == 0) {
45 if (str_to_uint32(field->value, &expires_in) < 0) {
/dovecot/src/lib-storage/index/dbox-single/
H A Dsdbox-mail.c61 sdbox_mail_get_special(struct mail *_mail, enum mail_fetch_field field, argument
68 switch (field) {
101 return dbox_mail_get_special(_mail, field, value_r);
/dovecot/src/lib-index/
H A Dmail-cache-decisions.c42 doesn't fetch messages in ascending order, the fetched field type will
47 1. Don't cache: Clients have never wanted the field
58 shouldn't have marked the field to be permanently cached. User might
74 uint32_t seq, unsigned int field)
81 i_assert(field < cache->fields_count);
86 dec = cache->fields[field].field.decision;
92 if (ioloop_time - cache->fields[field].field.last_used > 3600*24) {
94 cache->fields[field]
73 mail_cache_decision_state_update(struct mail_cache_view *view, uint32_t seq, unsigned int field) argument
129 mail_cache_decision_add(struct mail_cache_view *view, uint32_t seq, unsigned int field) argument
[all...]
H A Dmail-cache-lookup.c257 /* return the next field */
262 /* new field, have to re-read fields header to figure
270 "field index too large (%u >= %u)",
275 /* field reading might have re-mmaped the file and
283 data_size = cache->fields[field_idx].field.field_size;
286 /* variable size field. get its size from the file. */
311 struct mail_cache_iterate_field field; local
322 while ((ret = mail_cache_lookup_iter_next(&iter, &field)) > 0) {
323 buffer_write(view->cached_exists_buf, field.field_idx,
330 mail_cache_file_has_field(struct mail_cache *cache, unsigned int field) argument
336 mail_cache_field_exists(struct mail_cache_view *view, uint32_t seq, unsigned int field) argument
380 struct mail_cache_iterate_field field; local
409 struct mail_cache_iterate_field field; local
459 header_lines_save(struct header_lookup_context *ctx, const struct mail_cache_iterate_field *field) argument
506 struct mail_cache_iterate_field field; local
[all...]
/dovecot/src/lib-smtp/
H A Dsmtp-server-cmd-xclient.c70 struct smtp_proxy_data_field *field; local
78 field = array_append_space(fields);
79 field->name = p_strdup(pool, param->keyword);
80 field->value = p_strdup(pool, param->value);
/dovecot/src/lib-storage/index/raw/
H A Draw-mail.c98 raw_mail_get_special(struct mail *_mail, enum mail_fetch_field field, argument
103 switch (field) {
113 return index_mail_get_special(_mail, field, value_r);
/dovecot/src/stats/
H A Dclient-reader.c42 const char *field = fields[i]; local
45 if (strcmp(field, "count") == 0)
47 else if (strcmp(field, "sum") == 0)
49 else if (strcmp(field, "min") == 0)
51 else if (strcmp(field, "max") == 0)
53 else if (strcmp(field, "avg") == 0)
55 else if (strcmp(field, "median") == 0)
57 else if (strcmp(field, "%95") == 0)
H A Dstats-metrics.c157 const struct event_field *field = local
159 if (field == NULL)
163 switch (field->value_type) {
167 num = field->value.intmax;
170 num = field->value.timeval.tv_sec * 1000000ULL +
171 field->value.timeval.tv_usec;
/dovecot/src/lib-old-stats/
H A Dstats-parser.c146 const struct stats_parser_field *field,
149 const void *ptr = CONST_PTR_OFFSET(data, field->offset);
151 switch (field->type) {
153 switch (field->size) {
145 stats_parser_value(string_t *str, const struct stats_parser_field *field, const void *data) argument
/dovecot/src/lib-storage/index/dbox-multi/
H A Dmdbox-mail.c169 mdbox_mail_get_special(struct mail *_mail, enum mail_fetch_field field, argument
178 switch (field) {
208 return dbox_mail_get_special(_mail, field, value_r);
/dovecot/src/lib-storage/index/pop3c/
H A Dpop3c-mail.c244 pop3c_mail_get_special(struct mail *_mail, enum mail_fetch_field field, argument
249 switch (field) {
260 return index_mail_get_special(_mail, field, value_r);
/dovecot/src/doveadm/
H A Ddoveadm-mail-mailbox-status.c44 const char *field = *fields; local
46 if (strcmp(field, "all") == 0) {
54 } else if (strcmp(field, "messages") == 0)
56 else if (strcmp(field, "recent") == 0)
58 else if (strcmp(field, "uidnext") == 0)
60 else if (strcmp(field, "uidvalidity") == 0)
62 else if (strcmp(field, "unseen") == 0)
64 else if (strcmp(field, "highestmodseq") == 0)
66 else if (strcmp(field, "vsize") == 0)
68 else if (strcmp(field, "gui
[all...]
/dovecot/src/lib-mail/
H A Dmessage-part-data.c175 enum envelope_field field; local
185 field = envelope_get_field(hdr->name);
186 if (field == ENVELOPE_FIELD_UNKNOWN)
197 switch (field) {
/dovecot/src/lib-storage/index/dbox-common/
H A Ddbox-mail.c222 int dbox_mail_get_special(struct mail *_mail, enum mail_fetch_field field, argument
231 switch (field) {
260 return index_mail_get_special(_mail, field, value_r);
/dovecot/src/lib-storage/index/mbox/
H A Dmbox-mail.c179 mbox_mail_get_special(struct mail *_mail, enum mail_fetch_field field, argument
188 switch (field) {
234 return index_mail_get_special(_mail, field, value_r);
/dovecot/src/plugins/var-expand-crypt/
H A Dvar-expand-crypt-plugin.c141 const char *key, const char *field,
167 if ((ret = var_expand_long(_ctx, field, strlen(field),
222 const char *key, const char *field,
247 if ((ret = var_expand_long(_ctx, field, strlen(field),
140 var_expand_encrypt(struct var_expand_context *_ctx, const char *key, const char *field, const char **result_r, const char **error_r) argument
221 var_expand_decrypt(struct var_expand_context *_ctx, const char *key, const char *field, const char **result_r, const char **error_r) argument
/dovecot/src/lib/
H A Dvar-expand-if.c173 const char *key, const char *field,
177 by concatenating the key and field together. */
178 const char *input = t_strconcat(key, ":", field, NULL);
172 var_expand_if(struct var_expand_context *ctx, const char *key, const char *field, const char **result_r, const char **error_r) argument
/dovecot/src/lib-dict-backend/
H A Ddict-sql-settings.c89 '$' character and add its sql field */
110 return t_strconcat("Missing SQL field for variable: ",
114 /* mark this field as used */
204 struct dict_sql_map_field *field; local
220 return t_strconcat("Value is missing '$' for field: ",
223 field = array_append_space(&ctx->cur_fields);
224 field->sql_field.name = p_strdup(ctx->pool, key);
228 field->variable = p_strndup(ctx->pool, value + 10,
230 field->sql_field.value_type = DICT_SQL_TYPE_HEXBLOB;
233 field
[all...]
/dovecot/src/lib-storage/index/imapc/
H A Dimapc-mail.c66 static int imapc_mail_failed(struct mail *mail, const char *field) argument
92 field, fix_broken_mail ? " - treating it as empty" : "",
246 imapc_mail_get_headers(struct mail *_mail, const char *field, argument
256 header_names[0] = field;
267 return index_mail_get_headers(_mail, field, decode_to_utf8, value_r);
271 imapc_mail_get_first_header(struct mail *_mail, const char *field, argument
277 ret = imapc_mail_get_headers(_mail, field, decode_to_utf8, &values);
551 imapc_mail_get_special(struct mail *_mail, enum mail_fetch_field field, argument
558 switch (field) {
587 if (imapc_mail_fetch(_mail, field, NUL
[all...]
/dovecot/src/lib-storage/index/maildir/
H A Dmaildir-mail.c333 enum mail_fetch_field field; local
337 field = vsize ? MAIL_FETCH_VIRTUAL_SIZE : MAIL_FETCH_PHYSICAL_SIZE;
338 if ((mail->data.dont_cache_fetch_fields & field) != 0)
358 mail->data.dont_cache_fetch_fields |= field;
367 mail->data.dont_cache_fetch_fields |= field;
488 maildir_mail_get_special(struct mail *_mail, enum mail_fetch_field field, argument
496 switch (field) {
585 return index_mail_get_special(_mail, field, value_r);
705 enum mail_fetch_field field)
726 if (field
704 maildir_mail_remove_sizes_from_filename(struct mail *mail, enum mail_fetch_field field) argument
755 maildir_mail_set_cache_corrupted(struct mail *_mail, enum mail_fetch_field field, const char *reason) argument
[all...]

Completed in 27 milliseconds

123