]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-storage: Fix mailbox_list_index=yes + ACLs + auto=subscribe mailboxes
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 29 May 2017 14:20:48 +0000 (17:20 +0300)
committerGitLab <gitlab@git.dovecot.net>
Tue, 30 May 2017 07:00:34 +0000 (10:00 +0300)
commitf8a67af9b7bde79c186e6b82ea200d7fcf85571b
treed2207446066f87a2f6b906c242fbdd23635f89ea
parentd186a2391d98a3efa3fe1078879ef2798e169c29
lib-storage: Fix mailbox_list_index=yes + ACLs + auto=subscribe mailboxes

If the auto=subscribe mailbox didn't have a lookup ACL, it shouldn't have
been listed. This didn't work properly, because ACL plugin initialized the
autocreate_ctx only for the index iterator, while the autoboxes were
listed using the backend iterator. Fixed by not creating index iterator at
all when doing a passthrough iteration.
src/lib-storage/list/mailbox-list-index-iter.c
src/lib-storage/list/mailbox-list-index.h
src/lib-storage/mailbox-list-private.h