changeset 7720:2c1768e723c7 HEAD

imap_quote*() with LWSP compression: Make sure TABs are always converted to spaces.
author Timo Sirainen <tss@iki.fi>
date Thu, 21 Feb 2008 22:44:18 +0200
parents 8a470f7fd622
children 79fee036a09f
files src/lib-imap/imap-quote.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-imap/imap-quote.c	Thu Feb 21 21:34:04 2008 +0200
+++ b/src/lib-imap/imap-quote.c	Thu Feb 21 22:44:18 2008 +0200
@@ -26,8 +26,10 @@
 			modify = TRUE;
 			last_lwsp = FALSE;
 			break;
+		case '\t':
+			modify = TRUE;
+			/* fall through */
 		case ' ':
-		case '\t':
 			if (last_lwsp && compress_lwsp) {
 				modify = TRUE;
 				extra++;