view src/lib-mail/message-header-encode.h @ 9565:7c447e8c24fe HEAD

maildir: If we detect MH as the cause of unexpunging, log it in the error message.
author Timo Sirainen <tss@iki.fi>
date Thu, 29 Apr 2010 20:43:16 +0300
parents bd4a6f500c75
children
line wrap: on
line source

#ifndef MESSAGE_HEADER_ENCODE_H
#define MESSAGE_HEADER_ENCODE_H

/* Encode UTF-8 input into output wherever necessary. */
void message_header_encode(const char *input, string_t *output);

/* Encode the whole UTF-8 input using "Q" or "B" encoding into output.
   The output is split into multiple lines if necessary. The first line length
   is looked up from the output string. */
void message_header_encode_q(const unsigned char *input, unsigned int len,
			     string_t *output);
void message_header_encode_b(const unsigned char *input, unsigned int len,
			     string_t *output);

#endif