message-decoder.h revision 345253fb28498b2e0a60f4a2a8644c65feee7e75
5ce2084ada06ade9f44fc2914c34658e9a842dc1Timo Sirainen/* Decode message's contents as UTF-8, both the headers and the MIME bodies.
a24665de9d5c773115a5918e60ed587aafe67d5cTimo Sirainen The bodies are decoded from quoted-printable and base64 formats if needed.
5ce2084ada06ade9f44fc2914c34658e9a842dc1Timo Sirainen If dtcase=TRUE, the data is returned through
c0435c854a0e7246373b9752d163095cc4fbe985Timo Sirainen uni_utf8_to_decomposed_titlecase(). */
c0435c854a0e7246373b9752d163095cc4fbe985Timo Sirainenstruct message_decoder_context *message_decoder_init(bool dtcase);
c0435c854a0e7246373b9752d163095cc4fbe985Timo Sirainenvoid message_decoder_deinit(struct message_decoder_context **ctx);
a1973d0f171b027f9a7c642bc1c2134293731e1cTimo Sirainen/* Decode input and return decoded output. Headers are returned only in their
a1973d0f171b027f9a7c642bc1c2134293731e1cTimo Sirainen full multiline forms.
a1973d0f171b027f9a7c642bc1c2134293731e1cTimo Sirainen Returns TRUE if output is given, FALSE if more data is needed. If the input
a1973d0f171b027f9a7c642bc1c2134293731e1cTimo Sirainen ends in a partial character, it's returned in the next output. */