1
/* Copyright (c) 2002-2009 Dovecot Sieve authors, see the included COPYING file
7
/* Return value suitable for sending to client, either as quoted-string or
8
literal. Note that this also converts TABs into spaces, multiple spaces
9
into single space and NULs to #128. */
10
char *managesieve_quote(pool_t pool, const unsigned char *value, size_t value_len);
12
/* Append to existing string. */
13
void managesieve_quote_append(string_t *str, const unsigned char *value,
14
size_t value_len, bool compress_lwsp);
16
#define managesieve_quote_append_string(str, value, compress_lwsp) \
17
managesieve_quote_append(str, (const unsigned char *)(value), \
18
(size_t)-1, compress_lwsp)