Mercurial > dovecot > original-hg > dovecot-1.2
changeset 6961:16f761cdc910 HEAD
All changes end up to dovecot.index.log with dbox, so watch only it instead
of the whole dbox directory.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 08 Dec 2007 17:47:48 +0200 |
parents | 99ad673724ad |
children | 659e4a606aae |
files | src/lib-storage/index/dbox/dbox-storage.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/dbox/dbox-storage.c Sat Dec 08 17:11:14 2007 +0200 +++ b/src/lib-storage/index/dbox/dbox-storage.c Sat Dec 08 17:47:48 2007 +0200 @@ -430,11 +430,15 @@ static void dbox_notify_changes(struct mailbox *box) { struct dbox_mailbox *mbox = (struct dbox_mailbox *)box; + const char *path; if (box->notify_callback == NULL) index_mailbox_check_remove_all(&mbox->ibox); - else - index_mailbox_check_add(&mbox->ibox, mbox->path); + else { + path = t_strdup_printf("%s/"DBOX_INDEX_PREFIX".log", + mbox->path); + index_mailbox_check_add(&mbox->ibox, path); + } } static int dbox_list_iter_is_mailbox(struct mailbox_list_iterate_context *ctx