view src/lib-mail/message-body-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 8028c4dcf38f
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,
			struct message_part *part, int search_header);

#endif