Date: Thu, 19 Mar 2015 15:08:42 From: Steffen Kaiser skdovecot@smail.inf.fh-brs.de Reply-To: dovecot@dovecot.org To: Vu Ngoc VU vvu@mcra.fr Cc: dovecot@dovecot.org Subject: Re: fast doveadm search results
My goal is to be able to find mails quickly with "doveadm search".
What information you are search for? Message-ID, subject, body text? Thanks for your answer. Yes, I only need doveadm to search for fields that are in envelope or headers. Not the whole body part or the attachments.
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
Yes, as I didn't yet set anything, it looks like this. If I record correctly, I've pasted it in my initial post.
OK, I'll try to change mail_always_cache_fields.