Joakim Verona
2005-Mar-11 11:25 UTC
[Dovecot] Is it possible to regenerate the index files?
Is it possible to regenerate the index files, on other conditions than the mbox file being read? For instance, it would be nice if I could regenerate the index for a specific mbox whenever procmail delivers mail to it. If theres no existing solution, would it be possible to make a small script with something like "nc" that could send an imap command to dovecot, so that dovecot would rebuild its index for that mbox? If so, which imap command triggers an index rebuild? -- Joakim Verona www.verona.se
Timo Sirainen
2005-Mar-12 20:10 UTC
[Dovecot] Is it possible to regenerate the index files?
On Fri, 2005-03-11 at 12:25 +0100, Joakim Verona wrote:> Is it possible to regenerate the index files, on other conditions than > the mbox file being read? > > For instance, it would be nice if I could regenerate the index for a > specific mbox whenever procmail delivers mail to it. > > If theres no existing solution, would it be possible to make a small > script with something like "nc" that could send an imap command to > dovecot, so that dovecot would rebuild its index for that mbox? > If so, which imap command triggers an index rebuild?export MAIL=mbox:/home/user/mail # ie. the default_mail_env expanded echo "1 status inbox (messages)" | /usr/local/libexec/dovecot/imap For 1.0-test releases there should pretty soon come Dovecot LDA which saves the mail and updates the indexes immediately. I have a working test version of it already.. -------------- 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/20050312/80f57d01/attachment-0001.bin>
Joakim Verona
2005-Mar-14 09:18 UTC
[Dovecot] Is it possible to regenerate the index files?
Timo Sirainen <tss at iki.fi> writes:> On Fri, 2005-03-11 at 12:25 +0100, Joakim Verona wrote: >> Is it possible to regenerate the index files, on other conditions than >> the mbox file being read? >> >> For instance, it would be nice if I could regenerate the index for a >> specific mbox whenever procmail delivers mail to it. >> >> If theres no existing solution, would it be possible to make a small >> script with something like "nc" that could send an imap command to >> dovecot, so that dovecot would rebuild its index for that mbox? >> If so, which imap command triggers an index rebuild? > > export MAIL=mbox:/home/user/mail # ie. the default_mail_env expanded > echo "1 status inbox (messages)" | /usr/local/libexec/dovecot/imapOk, that seems fairly easy... One tiny question though: what does the "1" mean? I tried to parse the RFC but couldnt figure it out. I guess its just some sequence id.> For 1.0-test releases there should pretty soon come Dovecot LDA which > saves the mail and updates the indexes immediately. I have a working > test version of it already..Nice! But will it work together with procmail? -- Joakim Verona www.verona.se