Mercurial > dovecot > original-hg > dovecot-1.2
view src/lib-imap/imap-quote.h @ 9532:00cd9aacd03c HEAD
Updated copyright notices to include year 2010.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 25 Jan 2010 01:18:58 +0200 |
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