[dovecot-cvs] dovecot/src/deliver deliver.c,1.38,1.39

tss at dovecot.org tss at dovecot.org
Sat Nov 25 22:17:42 UTC 2006


Update of /var/lib/cvs/dovecot/src/deliver
In directory talvi:/tmp/cvs-serv28938/deliver

Modified Files:
	deliver.c 
Log Message:
Mailbox list indexing and related changes. Currently works only with
maildir and mmap_disable=no. This allows doing STATUS to synced mailboxes
without opening their index files at all.



Index: deliver.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/deliver/deliver.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- deliver.c	19 Nov 2006 22:38:09 -0000	1.38
+++ deliver.c	25 Nov 2006 22:17:39 -0000	1.39
@@ -40,8 +40,6 @@
 struct deliver_settings *deliver_set;
 deliver_mail_func_t *deliver_mail = NULL;
 
-void (*hook_mail_storage_created)(struct mail_storage *storage) = NULL;
-
 static struct module *modules;
 static struct ioloop *ioloop;
 
@@ -58,12 +56,11 @@
 {
 	struct mailbox_sync_context *ctx;
         struct mailbox_sync_rec sync_rec;
-	struct mailbox_status status;
 
 	ctx = mailbox_sync_init(box, 0);
 	while (mailbox_sync_next(ctx, &sync_rec) > 0)
 		;
-	return mailbox_sync_deinit(&ctx, &status);
+	return mailbox_sync_deinit(&ctx, 0, NULL);
 }
 
 static struct mailbox *
@@ -567,9 +564,6 @@
 			destination, mail_env == NULL ? "(null)" : mail_env);
 	}
 
-	if (hook_mail_storage_created != NULL)
-		hook_mail_storage_created(storage);
-
 	mbox_storage = mail_storage_create("mbox", "/tmp", destination, 0,
 					   MAIL_STORAGE_LOCK_FCNTL);
 	input = create_mbox_stream(0, envelope_sender);



More information about the dovecot-cvs mailing list