With ACL plugin enabled the call could have triggered dovecot-acl-list
rebuild, which in turn could have set list errors if it didn't have
permissions to all the mailboxes. This caused IMAP logins to fail.
char mailbox_list_get_hierarchy_sep(struct mailbox_list *list)
{
+ /* the current API doesn't allow returning an error, so imap code
+ looks at the list's last error. make sure the error is cleared
+ so the error-check doesn't return something irrelevant */
+ mailbox_list_clear_error(list);
return list->v.get_hierarchy_sep(list);
}