Lines Matching defs:field_idx
30 diff = (int)l1->field_idx - (int)l2->field_idx;
58 while (match_idx < lines[i].field_idx &&
74 i_assert(match_idx == lines[i].field_idx);
81 _mail->seq, lines[i].field_idx)) {
85 if (lines[j].field_idx != lines[i].field_idx)
99 if (lines[j].field_idx != lines[i].field_idx)
121 index_mail_cache_add_idx(mail, lines[i].field_idx,
194 unsigned int i, field_idx, match_count;
244 field_idx = get_header_field_idx(mail->mail.mail.box, "Date",
247 if (field_idx < match_count &&
248 match[field_idx] == mail->header_match_value) {
253 data->dont_cache_field_idx = field_idx;
254 array_idx_set(&mail->header_match, field_idx,
286 unsigned int field_idx, count;
325 data->parse_line.field_idx =
330 field_idx = data->parse_line.field_idx;
332 if (field_idx >= count ||
333 !HEADER_MATCH_USABLE(mail, match[field_idx])) {
347 match[field_idx] |= HEADER_MATCH_FLAG_FOUND;
550 unsigned int field_idx)
556 if (field_idx < count && HEADER_MATCH_USABLE(mail, match[field_idx]))
557 return (match[field_idx] & HEADER_MATCH_FLAG_FOUND) != 0 ? 1 : 0;
583 index_mail_get_parsed_header(struct index_mail *mail, unsigned int field_idx)
592 line_idx = array_idx(&mail->header_match_lines, field_idx);
601 if (lines[i].field_idx != lines[first_line_idx].field_idx)
628 unsigned int field_idx;
636 field_idx = get_header_field_idx(_mail->box, field,
641 _mail->seq, &field_idx, 1) <= 0) {
653 index_mail_header_is_parsed(mail, field_idx) < 0) {
666 if ((ret = index_mail_header_is_parsed(mail, field_idx)) <= 0) {
672 *value_r = index_mail_get_parsed_header(mail, field_idx);