[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-copy.c,1.10,1.11 maildir-expunge.c,1.6,1.7

cras at procontrol.fi cras at procontrol.fi
Sun Oct 27 08:37:20 EET 2002


Update of /home/cvs/dovecot/src/lib-storage/index/maildir
In directory danu:/tmp/cvs-serv17951/lib-storage/index/maildir

Modified Files:
	maildir-copy.c maildir-expunge.c 
Log Message:
Moved several fields from .imap.index file to .imap.index.data file. Fixed
code so that most of the fields do not need to be set when building index,
allowing the index building to be fast (just readdir()s with maildir). This
still needs some configuration and ability to update the fields whenever it
can grab exclusive lock.

Also fixed SEARCH LARGER, SMALLER and KEYWORD.



Index: maildir-copy.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/maildir/maildir-copy.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- maildir-copy.c	21 Oct 2002 00:24:54 -0000	1.10
+++ maildir-copy.c	27 Oct 2002 06:37:18 -0000	1.11
@@ -31,7 +31,7 @@
 		return FALSE;
 
 	/* link the file */
-	fname = index->lookup_field(index, rec, FIELD_TYPE_LOCATION);
+	fname = index->lookup_field(index, rec, DATA_FIELD_LOCATION);
 	i_snprintf(src, sizeof(src), "%s/cur/%s", index->dir, fname);
 
 	fname = maildir_filename_set_flags(maildir_generate_tmp_filename(),

Index: maildir-expunge.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/maildir/maildir-expunge.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- maildir-expunge.c	19 Oct 2002 23:09:56 -0000	1.6
+++ maildir-expunge.c	27 Oct 2002 06:37:18 -0000	1.7
@@ -11,7 +11,7 @@
 	char path[1024];
 
 	fname = ibox->index->lookup_field(ibox->index, rec,
-					  FIELD_TYPE_LOCATION);
+					  DATA_FIELD_LOCATION);
 	if (fname != NULL) {
 		i_snprintf(path, sizeof(path), "%s/cur/%s",
 			   ibox->index->dir, fname);




More information about the dovecot-cvs mailing list