18 Nov
2010
18 Nov
'10
7:31 p.m.
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 expunge"?
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 by IMAP SEARCH.
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.