Mercurial > dovecot > core-2.2
diff src/lib-storage/index/index-search.c @ 369:d037915978ca HEAD
message_parse_header() now calls the function with empty name/value at end
of headers. we use this feature with mbox to allow usage of Content-Length
header field.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 06 Oct 2002 12:20:20 +0300 |
parents | ea958a5b9de1 |
children | e057845d94ca |
line wrap: on
line diff
--- a/src/lib-storage/index/index-search.c Sun Oct 06 10:41:06 2002 +0300 +++ b/src/lib-storage/index/index-search.c Sun Oct 06 12:20:20 2002 +0300 @@ -406,7 +406,7 @@ { SearchHeaderContext *ctx = context; - if (ctx->custom_header || + if ((name_len > 0 && ctx->custom_header) || (name_len == 4 && strncasecmp(name, "From", 4) == 0) || (name_len == 2 && strncasecmp(name, "To", 2) == 0) || (name_len == 2 && strncasecmp(name, "Cc", 2) == 0) ||