Mercurial > dovecot > core-2.2
diff src/lib-storage/index/index-search.c @ 883:39e0b536e708 HEAD
Storage can now specify if errors should be sent to user as BAD or NO.
Some changes to messageset parsing as specified by latest IMAP4rev1 draft.
Bad charset error is prefixed with [BADCHARSET]. Fixed a crash in SEARCH the
last commit in it caused.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 02 Jan 2003 12:21:41 +0200 |
parents | fe91b60fdb7c |
children | 21ffcce83c70 |
line wrap: on
line diff
--- a/src/lib-storage/index/index-search.c Thu Jan 02 11:34:01 2003 +0200 +++ b/src/lib-storage/index/index-search.c Thu Jan 02 12:21:41 2003 +0200 @@ -26,7 +26,7 @@ (arg)->result = !(arg)->not ? (res) : -(res); \ } STMT_END -#define TXT_UNKNOWN_CHARSET "Unknown charset" +#define TXT_UNKNOWN_CHARSET "[BADCHARSET] Unknown charset" #define TXT_INVALID_SEARCH_KEY "Invalid search key" typedef struct { @@ -406,6 +406,12 @@ break; } + if (field == NULL) { + /* doesn't exist */ + ret = 0; + break; + } + hdr_search_ctx = search_header_context(ctx, arg); if (hdr_search_ctx == NULL) { ret = 0;