[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-storage.c, 1.160, 1.161

tss at dovecot.org tss at dovecot.org
Fri Mar 30 21:41:08 EEST 2007


Update of /var/lib/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv29641/index/maildir

Modified Files:
	maildir-storage.c 
Log Message:
Moved notify settings to struct mailbox. Removed the parameters from
notify_changes(), they're now set before calling it.



Index: maildir-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-storage.c,v
retrieving revision 1.160
retrieving revision 1.161
diff -u -d -r1.160 -r1.161
--- maildir-storage.c	30 Mar 2007 18:32:07 -0000	1.160
+++ maildir-storage.c	30 Mar 2007 18:41:06 -0000	1.161
@@ -876,25 +876,18 @@
 	return ret;
 }
 
-static void
-maildir_notify_changes(struct mailbox *box, unsigned int min_interval,
-		       mailbox_notify_callback_t *callback, void *context)
+static void maildir_notify_changes(struct mailbox *box)
 {
 	struct maildir_mailbox *mbox = (struct maildir_mailbox *)box;
 
-	mbox->ibox.min_notify_interval = min_interval;
-	mbox->ibox.notify_callback = callback;
-	mbox->ibox.notify_context = context;
-
-	if (callback == NULL) {
+	if (box->notify_callback == NULL)
 		index_mailbox_check_remove_all(&mbox->ibox);
-		return;
+	else {
+		index_mailbox_check_add(&mbox->ibox,
+					t_strconcat(mbox->path, "/new", NULL));
+		index_mailbox_check_add(&mbox->ibox,
+					t_strconcat(mbox->path, "/cur", NULL));
 	}
-
-	index_mailbox_check_add(&mbox->ibox,
-		t_strconcat(mbox->path, "/new", NULL));
-	index_mailbox_check_add(&mbox->ibox,
-		t_strconcat(mbox->path, "/cur", NULL));
 }
 
 static int



More information about the dovecot-cvs mailing list