I know that a given search index doesn't get built the first time until you do an actual search on it from an IMAP client. I don't much care about that; I'm the only user, and I don't create new folders too often. At worst, I could create a script to go search every folder once. But what I'm not clear about: Does it then get updated on every delivery by LDA? Or does the index also need to get updated when I do a search, assuming there's been at least one message delivered since the last search? Jay Levitt
On Sat, 2008-06-14 at 07:56 -0400, Jay Levitt wrote:> But what I'm not clear about: Does it then get updated on every delivery > by LDA? Or does the index also need to get updated when I do a search, > assuming there's been at least one message delivered since the last search?Currently it gets updated only when searching. I wanted to have it updated immediately (optionally) while mails are being delivered, but never got around to implementing it. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20080619/1aa884f1/attachment-0002.bin>
Timo Sirainen wrote:> On Sat, 2008-06-14 at 07:56 -0400, Jay Levitt wrote: >> But what I'm not clear about: Does it then get updated on every delivery >> by LDA? Or does the index also need to get updated when I do a search, >> assuming there's been at least one message delivered since the last search? > > Currently it gets updated only when searching. I wanted to have it > updated immediately (optionally) while mails are being delivered, but > never got around to implementing it.OK, some followups then: - Is the index rebuilt from scratch every time, or should updates be fairly quick? I just did a search on my inbox (about 10,000 messages), and I know I've done a search there in the past month - yet it either took many, many minutes, or it timed out. - If I wrote a script to log in and search for something, and ran it every night through cron, would that achieve daily indexing? Jay