From: Timo Sirainen Date: Wed, 4 Jun 2003 16:03:47 +0000 (+0300) Subject: Actually it should assume that beginning of string is LWSP.. X-Git-Tag: 1.1.alpha1~4570 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f58167d61d926f2ffd9366169ca5183e712e2992;p=thirdparty%2Fdovecot%2Fcore.git Actually it should assume that beginning of string is LWSP.. --HG-- branch : HEAD --- diff --git a/src/lib-imap/imap-quote.c b/src/lib-imap/imap-quote.c index 90fced0ccc..87ab6ed628 100644 --- a/src/lib-imap/imap-quote.c +++ b/src/lib-imap/imap-quote.c @@ -8,7 +8,7 @@ void imap_quote_append(string_t *str, const unsigned char *value, size_t value_len) { size_t i, linefeeds = 0; - int last_lwsp = FALSE, literal = FALSE, modify = FALSE; + int last_lwsp = TRUE, literal = FALSE, modify = FALSE; if (value == NULL) { str_append(str, "NIL"); @@ -54,7 +54,7 @@ void imap_quote_append(string_t *str, const unsigned char *value, if (!modify) str_append_n(str, value, value_len); else { - last_lwsp = FALSE; + last_lwsp = TRUE; for (i = 0; i < value_len; i++) { switch (value[i]) { case 0: