fast doveadm search results

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Thu Mar 19 14:08:42 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 19 Mar 2015, Vu Ngoc VU wrote:

> My goal is to be able to find mails quickly with "doveadm search".

What information you are search for? Message-ID, subject, body text?

If your data is in the headers, check out:

doveconf -a|grep -i cache

mail_always_cache_fields =
mail_cache_fields = flags
mail_cache_min_mail_count = 0
mail_never_cache_fields = imap.envelope

e.g. put message-id into mail_always_cache_fields

- From http://dovecot.org/pipermail/dovecot-cvs/2013-May/023261.html

lib-storage: Allow mail_*cache_fields settings to specify any hdr.* fields

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEVAwUBVQrYanz1H7kL/d9rAQInGwf9HSkQr7JhGI/GYH27qiEez2Adnp/7f8Qv
PfgcH+PqKpUcvXNM1xRrVXEq4yswNnkEIYjT7gs0NAY/Yr72cT5NuoU6s37yrPYW
moC/timqEx8UXafNmB3v+L2U0o0owvfxd4yK93EmUxbe7i91jeYBnKXHKoNA7uNF
p3V6ey7qf+CNmFg++rUnmH69iNG12Ia28Gg8ynzc1jZXEDFB2OCB+tFJwjJx2/Y6
Ujgis2JrtI5w086dfMwGnVexqGd697PgSmgYDxX5h8wPe6hd4oUc6dxV1cTlmzwj
cjJVVPNHhq37NFr8Uze+eYR3mqTBnex4I37WMCbuAhMgAn4BNOp8Kg==
=dwNy
-----END PGP SIGNATURE-----


More information about the dovecot mailing list