<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">On 13 Jan 2019, at 10.45, Joan Moreau via dovecot <<a href="mailto:dovecot@dovecot.org" class="">dovecot@dovecot.org</a>> wrote:<br class=""><div><blockquote type="cite" class=""><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" class=""><div style="font-size: 9pt; font-family: Verdana,Geneva,sans-serif" class=""><p class=""><span style="font-size: 9pt;" class="">Now, I can see in the logs that several times, the dovecot calls the fts_backend_xapian_update_set_mailbox with box == NULL. WHy so ?</span></p></div></div></blockquote><div>fts-api.h says:</div><div><br class=""></div><div><div>/* Switch to updating the specified mailbox. box may also be set to NULL to</div><div>   make sure the previous mailbox won't tried to be accessed anymore. */</div><div>void fts_backend_update_set_mailbox(struct fts_backend_update_context *ctx,</div><div><span class="Apple-tab-span" style="white-space:pre">                              </span>    struct mailbox *box);</div><div class=""><br class=""></div></div>So it's just telling you that you can close/free any stuff related to that mailbox.<br class=""><blockquote type="cite" class=""><div class=""><div style="font-size: 9pt; font-family: Verdana,Geneva,sans-serif" class=""><blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0" class=""><blockquote style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0;" class=""><p class="">additionally, my logic is that the backend stores one databalse per mailox in /xapian-indexes (in the "root" dir of the user), the name od the database is the GUID of the mailbox</p><p class="">For INBOX, that works perfectly, and database is properly createdm and backed starts indexing all emails</p><p class="">For other folder, somehow, the process can not access that (root) folder.</p><p class="">Am I missing something ?</p></blockquote></blockquote></div></div></blockquote><div><br class=""></div><div>This is a bit ambiguous, because some people mean mailbox=folder and others mean mailbox=user account, and GUID can also be the internal Dovecot folder GUID, or a GUID of the user.</div><div><br class=""></div><div>I'd recommend using a single database per user anyway.</div></div><br class=""></body></html>