Mercurial > dovecot > original-hg > dovecot-1.2
view src/lib-mail/message-body-search.h @ 988:8028c4dcf38f HEAD
mail-storage.h interface changes, affects pretty much everything.
FETCH, SEARCH, SORT and THREAD handling were pretty much moved from
lib-storage/ to imap/ so adding non-index storages would be much easier now.
Also POP3 server can now be easily implemented with lib-storage.
Not too well tested, and at least one major problem: partial fetching is
_slow_.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 20 Jan 2003 16:52:51 +0200 |
parents | fd8888f6f037 |
children | e6c42de08336 |
line wrap: on
line source
#ifndef __MESSAGE_BODY_SEARCH_H #define __MESSAGE_BODY_SEARCH_H struct message_part; /* Returns 1 if key is found from input buffer, 0 if not and -1 if error. There's two possible errors: either the charset is unknown or the key is invalid. If charset is NULL, the key isn't assumed to be in any specific charset but is compared to message data without any translation. */ int message_body_search(const char *key, const char *charset, int *unknown_charset, struct istream *input, const struct message_part *part, int search_header); #endif