dovecot: All changes end up to dovecot.index.log with dbox, so w...

dovecot at dovecot.org dovecot at dovecot.org
Sat Dec 8 17:47:52 EET 2007


details:   http://hg.dovecot.org/dovecot/rev/16f761cdc910
changeset: 6961:16f761cdc910
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Dec 08 17:47:48 2007 +0200
description:
All changes end up to dovecot.index.log with dbox, so watch only it instead
of the whole dbox directory.

diffstat:

1 file changed, 6 insertions(+), 2 deletions(-)
src/lib-storage/index/dbox/dbox-storage.c |    8 ++++++--

diffs (21 lines):

diff -r 99ad673724ad -r 16f761cdc910 src/lib-storage/index/dbox/dbox-storage.c
--- a/src/lib-storage/index/dbox/dbox-storage.c	Sat Dec 08 17:11:14 2007 +0200
+++ b/src/lib-storage/index/dbox/dbox-storage.c	Sat Dec 08 17:47:48 2007 +0200
@@ -430,11 +430,15 @@ static void dbox_notify_changes(struct m
 static void dbox_notify_changes(struct mailbox *box)
 {
 	struct dbox_mailbox *mbox = (struct dbox_mailbox *)box;
+	const char *path;
 
 	if (box->notify_callback == NULL)
 		index_mailbox_check_remove_all(&mbox->ibox);
-	else
-		index_mailbox_check_add(&mbox->ibox, mbox->path);
+	else {
+		path = t_strdup_printf("%s/"DBOX_INDEX_PREFIX".log",
+				       mbox->path);
+		index_mailbox_check_add(&mbox->ibox, path);
+	}
 }
 
 static int dbox_list_iter_is_mailbox(struct mailbox_list_iterate_context *ctx


More information about the dovecot-cvs mailing list