Mercurial > dovecot > original-hg > dovecot-1.2
view src/lib-mail/message-header-search.h @ 956:26cafa3dc09c HEAD
minor optimization
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 12 Jan 2003 01:49:45 +0200 |
parents | fd8888f6f037 |
children | 55df57c028d4 |
line wrap: on
line source
#ifndef __MESSAGE_HEADER_SEARCH_H #define __MESSAGE_HEADER_SEARCH_H struct header_search_context; /* Initialize new search. Returns NULL if charset is unknown or key is not valid in specified charset. */ struct header_search_context * message_header_search_init(pool_t pool, const char *key, const char *charset, int *unknown_charset); /* Free search context. Not needed if you just destroy the pool. */ void message_header_search_free(struct header_search_context *ctx); /* Returns TRUE if key is found from header. This function may be called multiple times with partial header blocks, but the blocks must contain only full lines so RFC2047 parsing can be done. */ int message_header_search(const unsigned char *header_block, size_t size, struct header_search_context *ctx); /* Next call to message_header_search() will begin a new header. */ void message_header_search_reset(struct header_search_context *ctx); #endif