doveadm-index(1) - Index mailboxes
SYNOPSIS
doveadm [GLOBAL OPTIONS] index [-S socket_path] -A [-q] [-n max_recent] mailbox
doveadm [GLOBAL OPTIONS] index [-S socket_path] -F file [-q] [-n max_recent] mailbox
doveadm [GLOBAL OPTIONS] index [-S socket_path] --no-userdb-lookup [-q] [-n max_recent] mailbox
doveadm [GLOBAL OPTIONS] index [-S socket_path] -u user [-q] [-n max_recent] mailbox
DESCRIPTION
Add unindexed messages in a mailbox into index/cache file. If full text search is enabled, also add unindexed messages to the fts database.
The caching adds only the fields that were previously added to the mailbox's caching decisions, so it won't do anything useful for mailboxes that user's client hasn't accessed yet. You can use doveadm dump command to show a specific mailbox's current caching decisions.
Messages can also be added automatically to full text search index using:
plugin {
...
fts_autoindex = yes
}
OPTIONS
- -n max_recent
- An integer value, which specifies the maximum number of \Recent messages in mailboxes. If the mailbox contains more than max_recent messages with \Recent flag set, the mailbox will not be indexed. This may be useful to avoid unnecessary indexing for large mailboxes that are never opened.
- -q
- Queues the indexing to be run by indexer process. Without -q the indexing is done directly by the
doveadm(1)
process. Some backends can't handle multiple processes updating the indexes simultaneously, so -q should usually be used on production.
ARGUMENTS
- mailbox
- The name of the mailbox to index.
EXAMPLE
Index bob's INBOX:
$ doveadm index -u bob INBOX