Mercurial > dovecot > original-hg > dovecot-1.2
diff src/lib-mail/message-body-search.c @ 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 | 97f8c00b8d4c |
line wrap: on
line diff
--- a/src/lib-mail/message-body-search.c Mon Jan 20 15:56:55 2003 +0200 +++ b/src/lib-mail/message-body-search.c Mon Jan 20 16:52:51 2003 +0200 @@ -255,7 +255,7 @@ static int message_search_body(struct part_search_context *ctx, struct istream *input, - struct message_part *part) + const struct message_part *part) { const unsigned char *data; buffer_t *decodebuf; @@ -368,7 +368,7 @@ static int message_body_search_ctx(struct body_search_context *ctx, struct istream *input, - struct message_part *part) + const struct message_part *part) { struct part_search_context part_ctx; int found; @@ -410,7 +410,7 @@ int message_body_search(const char *key, const char *charset, int *unknown_charset, struct istream *input, - struct message_part *part, int search_header) + const struct message_part *part, int search_header) { struct body_search_context ctx;