Mercurial > dovecot > core-2.2
changeset 10254:ea4a80ee0283 HEAD
dbox notify: Look for dbox index files from index dir, not mail root dir.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 05 Nov 2009 15:24:36 -0500 |
parents | 96838accb6af |
children | b2925a5d9cf7 |
files | src/lib-storage/index/dbox-common/dbox-storage.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 *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); } }