[dovecot-cvs] dovecot/src/lib-imap imap-parser.c,1.43,1.44

cras at procontrol.fi cras at procontrol.fi
Thu Mar 20 19:06:26 EET 2003


Update of /home/cvs/dovecot/src/lib-imap
In directory danu:/tmp/cvs-serv21250

Modified Files:
	imap-parser.c 
Log Message:
We didn't stop after reading literal size. This broke using non-synced
literals with APPEND.



Index: imap-parser.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-imap/imap-parser.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- imap-parser.c	9 Mar 2003 00:35:20 -0000	1.43
+++ imap-parser.c	20 Mar 2003 17:06:23 -0000	1.44
@@ -560,8 +560,8 @@
 {
 	parser->flags = flags;
 
-	while (count == 0 || parser->root_list->size < count ||
-	       IS_UNFINISHED(parser)) {
+	while (!parser->eol && (count == 0 || parser->root_list->size < count ||
+				IS_UNFINISHED(parser))) {
 		if (!imap_parser_read_arg(parser))
 			break;
 
@@ -580,7 +580,7 @@
 	} else if ((!IS_UNFINISHED(parser) && count > 0 &&
 		    parser->root_list->size >= count) || parser->eol) {
 		/* all arguments read / end of line. */
-		i_stream_skip(parser->input, parser->cur_pos);
+ 		i_stream_skip(parser->input, parser->cur_pos);
 		parser->cur_pos = 0;
 
 		if (parser->list_arg != NULL) {




More information about the dovecot-cvs mailing list