[dovecot-cvs] dovecot/src/imap imap-sort.c,1.17,1.18

cras at dovecot.org cras at dovecot.org
Thu Jan 6 20:14:30 EET 2005


Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv30594/imap

Modified Files:
	imap-sort.c 
Log Message:
Added rfc822 parser which will probably replace message_tokenizer at some
point. Rewrote address parsing with the new parser. This fixes various bugs
in it.



Index: imap-sort.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/imap-sort.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- imap-sort.c	8 Oct 2004 17:51:47 -0000	1.17
+++ imap-sort.c	6 Jan 2005 18:14:28 -0000	1.18
@@ -295,8 +295,8 @@
 		return NULL;
 
 	addr = message_address_parse(pool_datastack_create(),
-				     (const unsigned char *) str,
-				     (size_t)-1, 1);
+				     (const unsigned char *)str,
+				     strlen(str), 1);
 	return addr != NULL ? addr->mailbox : NULL;
 }
 



More information about the dovecot-cvs mailing list