grosjo / fts-xapian

Dovecot FTS plugin based on Xapian
GNU Lesser General Public License v2.1
97 stars 21 forks source link

`doveadm fts rescan` exits without indexing Maildirs. #52

Closed codewiz closed 4 years ago

codewiz commented 4 years ago

I built fts-xapian from sources against dovecot 2.3.7.2 and configured it this way:

mail_plugins = fts fts_xapian

plugin {
        plugin = fts fts_xapian

        fts = xapian
        fts_xapian = partial=2 full=20 attachments=0 verbose=1

        fts_autoindex = yes
        fts_enforced = yes

        fts_autoindex_exclude = \Trash
        fts_autoindex_exclude2 = \Spam
        fts_autoindex_exclude3 = \Archive
        fts_autoindex_exclude4 = \Archives
}

Then I tried to generate the indexes, but nothing happens:

# doveadm -v fts rescan -u bernie
doveadm(bernie): Info: FTS Xapian: Starting with partial=2 full=20 attachments=0 verbose=1
doveadm(bernie): Info: FTS Xapian: fts_backend_xapian_rescan
doveadm(bernie): Info: FTS Xapian: fts_backend_xapian_deinit
doveadm(bernie): Info: FTS Xapian: Unset box '(null)' ((null))
doveadm(bernie): Info: FTS Xapian: Committed 'unset_box' in 0 ms

I have several GBs of mail in /home/bernie/Maildir

grosjo commented 4 years ago

What rescan does, according to dovecot design, is simply to reset the index, and indexes will be rebuilt upon reception of an email in the imap folder. (ask Dovecot ML for the reason of this design)

If you want to force the re-indexing, you shall issue a command like : doveadm index -A -q \*

grosjo commented 4 years ago

Any feedback ?