dovecot-2.0: imap_quote*(): If fix_text=FALSE and input contains...

dovecot at dovecot.org dovecot at dovecot.org
Sat Aug 29 00:30:28 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/0b8492a4f219
changeset: 9828:0b8492a4f219
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Aug 28 17:30:05 2009 -0400
description:
imap_quote*(): If fix_text=FALSE and input contains CRs or LFs, use literals.

diffstat:

1 file changed, 2 insertions(+)
src/lib-imap/imap-quote.c |    2 ++

diffs (12 lines):

diff -r dad7264633a9 -r 0b8492a4f219 src/lib-imap/imap-quote.c
--- a/src/lib-imap/imap-quote.c	Fri Aug 28 17:27:08 2009 -0400
+++ b/src/lib-imap/imap-quote.c	Fri Aug 28 17:30:05 2009 -0400
@@ -38,6 +38,8 @@ void imap_quote_append(string_t *str, co
 			break;
 		case 13:
 		case 10:
+			if (!fix_text)
+				literal = TRUE;
 			extra++;
 			modify = TRUE;
 			break;


More information about the dovecot-cvs mailing list