Mercurial > dovecot > original-hg > dovecot-1.2
view src/lib-mail/message-content-parser.h @ 0:3b1985cbc908 HEAD
Initial revision
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 09 Aug 2002 12:15:38 +0300 |
parents | |
children | 82b7de533f98 |
line wrap: on
line source
#ifndef __MESSAGE_CONTENT_PARSER_H #define __MESSAGE_CONTENT_PARSER_H /* functions can safely store data into temporary memory pool, ie. message_content_parse_header() is guaranteed not to call t_push()/t_pop() */ /* Note that count can be 0 */ typedef void (*ParseContentFunc)(const Rfc822Token *tokens, int count, void *user_data); /* name is always atom, value_count is always > 0 */ typedef void (*ParseContentParamFunc)(const Rfc822Token *name, const Rfc822Token *value, int value_count, void *user_data); int message_content_parse_header(const char *value, ParseContentFunc func, ParseContentParamFunc param_func, void *user_data); #endif