]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Actually it should assume that beginning of string is LWSP..
authorTimo Sirainen <tss@iki.fi>
Wed, 4 Jun 2003 16:03:47 +0000 (19:03 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 4 Jun 2003 16:03:47 +0000 (19:03 +0300)
--HG--
branch : HEAD

src/lib-imap/imap-quote.c

index 90fced0ccc1aff031ce7ba6a0ced9d19fa6353c7..87ab6ed6286ef0a154b600274485bf525effeed0 100644 (file)
@@ -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: