dovecot-2.2: imapc: Treat literal8 input the same as regular lit...

dovecot at dovecot.org dovecot at dovecot.org
Mon Nov 16 10:25:22 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/c0229e018a24
changeset: 19358:c0229e018a24
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Nov 16 12:24:53 2015 +0200
description:
imapc: Treat literal8 input the same as regular literal.
This is mainly for migrating away from broken servers (a patched Cyrus) that
send literal8 if a (corrupted) message contains NULs.

diffstat:

 src/lib-imap-client/imapc-connection.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 8dae5dc991ce -r c0229e018a24 src/lib-imap-client/imapc-connection.c
--- a/src/lib-imap-client/imapc-connection.c	Thu Nov 12 18:27:54 2015 +0200
+++ b/src/lib-imap-client/imapc-connection.c	Mon Nov 16 12:24:53 2015 +0200
@@ -548,6 +548,7 @@
 	ret = imap_parser_read_args(conn->parser, 0,
 				    IMAP_PARSE_FLAG_LITERAL_SIZE |
 				    IMAP_PARSE_FLAG_ATOM_ALLCHARS |
+				    IMAP_PARSE_FLAG_LITERAL8 |
 				    IMAP_PARSE_FLAG_SERVER_TEXT, imap_args_r);
 	if (ret == -2) {
 		/* need more data */


More information about the dovecot-cvs mailing list