dovecot-1.2: dbox notify: Look for dbox index files from index d...

dovecot at dovecot.org dovecot at dovecot.org
Thu Nov 5 22:23:56 EET 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/68af994e7f3c
changeset: 9466:68af994e7f3c
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Nov 05 15:23:52 2009 -0500
description:
dbox notify: Look for dbox index files from index dir, not mail root dir.

diffstat:

1 file changed, 4 insertions(+), 3 deletions(-)
src/lib-storage/index/dbox/dbox-storage.c |    7 ++++---

diffs (21 lines):

diff -r 19aee456cec3 -r 68af994e7f3c src/lib-storage/index/dbox/dbox-storage.c
--- a/src/lib-storage/index/dbox/dbox-storage.c	Thu Nov 05 12:25:43 2009 -0500
+++ b/src/lib-storage/index/dbox/dbox-storage.c	Thu Nov 05 15:23:52 2009 -0500
@@ -596,13 +596,14 @@ 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;
+	const char *dir, *path;
 
 	if (box->notify_callback == NULL)
 		index_mailbox_check_remove_all(&mbox->ibox);
 	else {
-		path = t_strdup_printf("%s/"DBOX_INDEX_PREFIX".log",
-				       mbox->path);
+		dir = mailbox_list_get_path(box->storage->list, box->name,
+					    MAILBOX_LIST_PATH_TYPE_INDEX);
+		path = t_strdup_printf("%s/"DBOX_INDEX_PREFIX".log", dir);
 		index_mailbox_check_add(&mbox->ibox, path);
 	}
 }


More information about the dovecot-cvs mailing list