[dovecot-cvs] dovecot/src/lib-imap imap-message-cache.c,1.23,1.24

cras at procontrol.fi cras at procontrol.fi
Sun Nov 3 10:39:45 EET 2002


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

Modified Files:
	imap-message-cache.c 
Log Message:
SEARCH CHARSET support. Currently we do it through iconv() and only ASCII   
characters are compared case-insensitively.



Index: imap-message-cache.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-imap/imap-message-cache.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- imap-message-cache.c	28 Oct 2002 09:46:03 -0000	1.23
+++ imap-message-cache.c	3 Nov 2002 08:39:43 -0000	1.24
@@ -477,6 +477,8 @@
 
 	msg = cache->open_msg;
 	if (inbuf != NULL) {
+		if (msg->hdr_size == NULL)
+			cache_fields(cache, IMAP_CACHE_MESSAGE_HDR_SIZE);
 		offset = hdr_size != NULL ? 0 :
 			msg->hdr_size->physical_size;
 		if (!imap_msgcache_get_inbuf(cache, offset))




More information about the dovecot-cvs mailing list