dovecot-2.0-sslstream: dbox notify: Look for dbox index files fr...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Feb 13 02:56:00 EET 2010
details: http://hg.dovecot.org/dovecot-2.0-sslstream/rev/ea4a80ee0283
changeset: 10255: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