Mercurial > dovecot > core-2.2
view src/lib-imap/imap-bodystructure.h @ 15056:6acd8b149709
imap_body_parse_from_bodystructure() now returns the error instead of logging it.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 15 Sep 2012 16:13:02 +0300 |
parents | 81806d402514 |
children | d1f084a39708 |
line wrap: on
line source
#ifndef IMAP_BODYSTRUCTURE_H #define IMAP_BODYSTRUCTURE_H struct message_part; struct message_header_line; /* Parse a single header. Note that this modifies part->context. */ void imap_bodystructure_parse_header(pool_t pool, struct message_part *part, struct message_header_line *hdr); /* Returns TRUE if BODYSTRUCTURE is ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" n n NIL NIL NIL) */ bool imap_bodystructure_is_plain_7bit(const struct message_part *part) ATTR_PURE; void imap_bodystructure_write(const struct message_part *part, string_t *dest, bool extended); /* Get BODY part from BODYSTRUCTURE and write it to dest. Returns 0 if ok, -1 if bodystructure wasn't valid. */ int imap_body_parse_from_bodystructure(const char *bodystructure, string_t *dest, const char **error_r); #endif