message-body-search.h revision 0ac47e1f2dbe5afca4a1d5a00a320b680ee4a8ab
#ifndef __MESSAGE_BODY_SEARCH_H
#define __MESSAGE_BODY_SEARCH_H
struct message_part;
enum message_body_search_error {
/* Don't know the given charset. */
/* Key contains invalid characters in given charset. */
/* Message_part doesn't match the reality in input stream. */
};
/* Returns 1 if key is found from input buffer, 0 if not and -1 if error.
If charset is NULL, the key isn't assumed to be in any specific charset but
is compared to message data without any translation. */
enum message_body_search_error *error_r);
#endif