index-search.c (dovecot-2.3.16) | : | index-search.c (dovecot-2.3.17) | ||
---|---|---|---|---|
skipping to change at line 662 | skipping to change at line 662 | |||
ARG_SET_RESULT(arg, 0); | ARG_SET_RESULT(arg, 0); | |||
break; | break; | |||
default: | default: | |||
break; | break; | |||
} | } | |||
} | } | |||
static void search_header(struct message_header_line *hdr, | static void search_header(struct message_header_line *hdr, | |||
struct search_header_context *ctx) | struct search_header_context *ctx) | |||
{ | { | |||
if (ctx->parse_headers) | ||||
index_mail_parse_header(NULL, hdr, ctx->imail); | ||||
if (hdr == NULL) { | if (hdr == NULL) { | |||
/* end of headers, mark all unknown SEARCH_HEADERs unmatched */ | /* end of headers, mark all unknown SEARCH_HEADERs unmatched */ | |||
(void)mail_search_args_foreach(ctx->args, search_header_unmatch, | (void)mail_search_args_foreach(ctx->args, search_header_unmatch, | |||
ctx); | ctx); | |||
return; | return; | |||
} | } | |||
if (hdr->eoh) | if (hdr->eoh) | |||
return; | return; | |||
if (ctx->parse_headers) | ||||
index_mail_parse_header(NULL, hdr, ctx->imail); | ||||
if (ctx->custom_header || strcasecmp(hdr->name, "Date") == 0) { | if (ctx->custom_header || strcasecmp(hdr->name, "Date") == 0) { | |||
ctx->hdr = hdr; | ctx->hdr = hdr; | |||
ctx->decoded_block_set = FALSE; | ctx->decoded_block_set = FALSE; | |||
ctx->custom_header = FALSE; | ctx->custom_header = FALSE; | |||
(void)mail_search_args_foreach(ctx->args, search_header_arg, ctx) ; | (void)mail_search_args_foreach(ctx->args, search_header_arg, ctx) ; | |||
} | } | |||
} | } | |||
static void search_body(struct mail_search_arg *arg, | static void search_body(struct mail_search_arg *arg, | |||
End of changes. 2 change blocks. | ||||
3 lines changed or deleted | 3 lines changed or added |