[dovecot-cvs] dovecot/src/lib-storage mail-storage-private.h, 1.24, 1.25

cras at dovecot.org cras at dovecot.org
Fri Apr 14 15:30:24 EEST 2006


Update of /var/lib/cvs/dovecot/src/lib-storage
In directory talvi:/tmp/cvs-serv15869

Modified Files:
	mail-storage-private.h 
Log Message:
Optimized searching a bit for cases where we can restrict search range by
simply looking at sequence sets. Also optimized some deleted/seen flag
searches where no results would be found. Added search_next_update_seq()
virtual method which allows plugins to restrict the search range (eg.
allowing indexed text search plugins).



Index: mail-storage-private.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/mail-storage-private.h,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- mail-storage-private.h	27 Feb 2006 16:21:57 -0000	1.24
+++ mail-storage-private.h	14 Apr 2006 12:30:22 -0000	1.25
@@ -139,6 +139,8 @@
 		       const enum mail_sort_type *sort_program);
 	int (*search_deinit)(struct mail_search_context *ctx);
 	int (*search_next)(struct mail_search_context *ctx, struct mail *mail);
+	/* Internal search function which updates ctx->seq */
+	int (*search_next_update_seq)(struct mail_search_context *ctx);
 
 	int (*save_init)(struct mailbox_transaction_context *t,
 			 enum mail_flags flags,
@@ -224,6 +226,7 @@
 
 struct mail_search_context {
 	struct mailbox_transaction_context *transaction;
+	uint32_t seq;
 };
 
 struct mail_save_context {



More information about the dovecot-cvs mailing list