Mercurial > dovecot > original-hg > dovecot-1.2
changeset 9466:68af994e7f3c 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:23:52 -0500 |
parents | 19aee456cec3 |
children | 2cf9f73cf0aa |
files | src/lib-storage/index/dbox/dbox-storage.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 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); } }