[Dovecot] Doveadm

Timo Sirainen tss at iki.fi
Thu Nov 18 19:31:37 EET 2010

On Thu, 2010-11-18 at 10:08 -0200, Alex Baule wrote:

> How doveadm purge a email ?

By "purge" do you actually mean the "doveadm purge" command that works
only for multi-dbox? Or I'm guessing more likely you mean "doveadm

> It's search using the index or scan every directory and open the email to
> match the search criteria ?

This doesn't have much to do with expunging, or even doveadm really.
It's done the same way for all doveadm's mail commands (search, fetch,
expunge, altmove, etc.) The actual search code is also the same as used

So, yeah, it'll use indexes as best as it can, but if you try to search
based on something that's not in index/cache file (like message body),
it'll have to open the mails.

More information about the dovecot mailing list