message-decoder.h revision 0ce8f754204c7eeb33805993807393f74faf2cd3
#ifndef __MESSAGE_DECODER_H
#define __MESSAGE_DECODER_H
struct message_block;
/* Decode message's contents as UTF-8, both the headers and the MIME bodies.
The bodies are decoded from quoted-printable and base64 formats if needed.
The data is returned uppercased. */
struct message_decoder_context *message_decoder_init_ucase(void);
/* Decode input and return decoded output. Headers are returned only in their
full multiline forms.
Returns TRUE if output is given, FALSE if more data is needed. If the input
ends in a partial character, it's returned in the next output. */
struct message_block *input,
struct message_block *output);
#endif