[dovecot-cvs] dovecot/src/lib-imap imap-bodystructure.c,1.25,1.26

cras at procontrol.fi cras at procontrol.fi
Sat Jan 4 15:22:32 EET 2003


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

Modified Files:
	imap-bodystructure.c 
Log Message:
Rfc822 tokenizer cleanups



Index: imap-bodystructure.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-imap/imap-bodystructure.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- imap-bodystructure.c	3 Jan 2003 15:57:12 -0000	1.25
+++ imap-bodystructure.c	4 Jan 2003 13:22:30 -0000	1.26
@@ -110,11 +110,7 @@
 	str = t_str_new(256);
 
 	quoted = FALSE;
-	while (rfc822_tokenize_next(ctx)) {
-		token = rfc822_tokenize_get(ctx);
-		if (token == TOKEN_LAST)
-			break;
-
+	while ((token = rfc822_tokenize_next(ctx)) != TOKEN_LAST) {
 		if (token == ',') {
 			/* list separator */
 			if (quoted) {




More information about the dovecot-cvs mailing list