Lines Matching refs:fields

17 	 (cache)->fields[field_idx].used)
53 const struct mail_cache_field *field = &cache->fields[idx].field;
78 internal fields and for mail_*cache_fields settings? */
81 orig = &cache->fields[newfield->idx];
102 struct mail_cache_field *fields,
113 fields[i].name, &name, &value)) {
114 fields[i].idx = POINTER_CAST_TO(value, unsigned int);
115 mail_cache_field_update(cache, &fields[i]);
122 if (strcasecmp(fields[i].name, fields[j].name) == 0) {
123 fields[i].idx = fields[j].idx;
129 fields[i].idx = new_idx++;
136 cache->fields = i_realloc_type(cache->fields,
145 unsigned int idx = fields[i].idx;
151 name = p_strdup(cache->field_pool, fields[i].name);
152 cache->fields[idx].field = fields[i];
153 cache->fields[idx].field.name = name;
154 cache->fields[idx].field.last_used = fields[i].last_used;
157 if (!field_has_fixed_size(cache->fields[idx].field.type))
158 cache->fields[idx].field.field_size = UINT_MAX;
185 return &cache->fields[field_idx].field;
201 list[i] = cache->fields[i].field;
285 mail_cache_set_corrupted(cache, "missing header fields");
297 /* invalidate the cache fields area to make sure we
298 get the latest cache decisions/last_used fields */
336 /* no fields - the file is empty */
406 cache->fields[fidx].field.decision;
409 changed, update the fields in the file. */
412 } else if (cache->fields[fidx].decision_dirty) {
417 cache->fields[fidx].field.decision = file_dec;
437 cache->fields[fidx].used = TRUE;
443 if ((time_t)last_used[i] > cache->fields[fidx].field.last_used)
444 cache->fields[fidx].field.last_used = last_used[i];
446 dec = cache->fields[fidx].field.decision;
447 if (cache->fields[fidx].field.last_used < max_drop_time &&
448 cache->fields[fidx].field.last_used != 0 &&
452 fields that have never been used. */
467 /* copy the existing fields */
470 data = CONST_PTR_OFFSET(&cache->fields[field], offset);
476 /* copy newly wanted fields */
479 data = CONST_PTR_OFFSET(&cache->fields[i], offset);
492 /* copy the existing fields */
495 data = CONST_PTR_OFFSET(&cache->fields[field], offset);
502 /* copy newly wanted fields */
505 data = CONST_PTR_OFFSET(&cache->fields[i], offset);
540 cache->fields[i].decision_dirty = FALSE;
586 /* we have to keep the field order for the existing fields. */
601 /* add existing fields' names */
604 name = cache->fields[field].field.name;
607 /* add newly wanted fields' names */
610 name = cache->fields[i].field.name;