#ifndef MESSAGE_SEARCH_H
#define MESSAGE_SEARCH_H
struct message_block;
struct message_part;
struct message_search_context;
enum message_search_flags {
/* Skip the main header and all the MIME headers. */
};
/* The key must be given in UTF-8 charset */
struct message_search_context *
message_search_init(const char *normalized_key_utf8,
enum message_search_flags flags);
/* Returns TRUE if key is found from input buffer, FALSE if not. */
struct message_block *raw_block);
/* Same as message_search_more(), but return the decoded block. If the same
input is being fed to multiple searches, this avoids duplicating the work
by doing the following searches with message_search_more_decoded() */
struct message_block *raw_block,
struct message_block *decoded_block_r);
/* The data has already passed through decoder. */
struct message_block *block);
/* Search a full message. Returns 1 if match was found, 0 if not,
-1 if error (if stream_error == 0, the parts contained broken data) */
const char **error_r)
ATTR_NULL(3);
#endif