dovecot-2.0: dbox notify: Look for dbox index files from index d...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Nov 5 22:24:40 EET 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/ea4a80ee0283
changeset: 10254:ea4a80ee0283
user: Timo Sirainen <tss at iki.fi>
date: Thu Nov 05 15:24:36 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-common/dbox-storage.c | 7 ++++---
diffs (21 lines):
diff -r 96838accb6af -r ea4a80ee0283 src/lib-storage/index/dbox-common/dbox-storage.c
--- a/src/lib-storage/index/dbox-common/dbox-storage.c Thu Nov 05 15:00:12 2009 -0500
+++ b/src/lib-storage/index/dbox-common/dbox-storage.c Thu Nov 05 15:24:36 2009 -0500
@@ -42,13 +42,14 @@ void dbox_notify_changes(struct mailbox
void dbox_notify_changes(struct mailbox *box)
{
struct index_mailbox *ibox = (struct index_mailbox *)box;
- const char *path;
+ const char *dir, *path;
if (box->notify_callback == NULL)
index_mailbox_check_remove_all(ibox);
else {
- path = t_strdup_printf("%s/"DBOX_INDEX_PREFIX".log",
- ibox->box.path);
+ dir = mailbox_list_get_path(box->list, box->name,
+ MAILBOX_LIST_PATH_TYPE_INDEX);
+ path = t_strdup_printf("%s/"DBOX_INDEX_PREFIX".log", dir);
index_mailbox_check_add(ibox, path);
}
}
More information about the dovecot-cvs
mailing list