dovecot-2.2: imap parser: literal8 flag was handled in opposite ...

dovecot at dovecot.org dovecot at dovecot.org
Wed Jun 20 06:22:14 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/c14c58bedafe
changeset: 14617:c14c58bedafe
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jun 20 06:21:57 2012 +0300
description:
imap parser: literal8 flag was handled in opposite way.

diffstat:

 src/lib-imap/imap-parser.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 3a53a2f7927a -r c14c58bedafe src/lib-imap/imap-parser.c
--- a/src/lib-imap/imap-parser.c	Wed Jun 20 06:21:17 2012 +0300
+++ b/src/lib-imap/imap-parser.c	Wed Jun 20 06:21:57 2012 +0300
@@ -519,7 +519,7 @@
 			parser->str_first_escape = -1;
 			break;
 		case '~':
-			if ((parser->flags & IMAP_PARSE_FLAG_LITERAL8) != 0) {
+			if ((parser->flags & IMAP_PARSE_FLAG_LITERAL8) == 0) {
 				parser->error = "literal8 not allowed here";
 				return FALSE;
 			}


More information about the dovecot-cvs mailing list