Mercurial > dovecot > original-hg > dovecot-1.2
view src/lib-imap/imap-quote.h @ 9595:166a188f9165 HEAD
mbox: Fields weren't being added to cache file during message saving.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 30 Jul 2010 16:55:58 +0100 |
parents | 8f3115354d14 |
children |
line wrap: on
line source
#ifndef IMAP_QUOTE_H #define IMAP_QUOTE_H /* Return value suitable for sending to client, either as quoted-string or literal. Note that this also converts TABs into spaces, multiple spaces into single space and NULs to #128. */ const char *imap_quote(pool_t pool, const unsigned char *value, size_t value_len); /* Append to existing string. */ void imap_quote_append(string_t *str, const unsigned char *value, size_t value_len, bool compress_lwsp); #define imap_quote_append_string(str, value, compress_lwsp) \ imap_quote_append(str, (const unsigned char *)(value), \ (size_t)-1, compress_lwsp) /* Append data to destination string quoted using "". */ void imap_dquote_append(string_t *dest, const char *src); #endif