Jonathan Siegle
2008-Nov-25 16:28 UTC
[Dovecot] [dovecot] Pre-populate index files for mbox
Is there a program written that can be used to build the index files for a given mbox file without using IMAP/POP? If not I'll be happy to donate it when I'm done. The args would be the userid , the full path to the mbox and where to put the index files. -Jonathan -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3485 bytes Desc: S/MIME Cryptographic Signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20081125/3cc4ac78/attachment-0002.bin>
As a quick hack, surely you could deliver a dummy file to the inbox and then login over pop/imap and remove it? Mark
On Nov 25, 2008, at 6:28 PM, Jonathan Siegle wrote:> Is there a program written that can be used to build the index files > for a given mbox file without using IMAP/POP? If not I'll be happy > to donate it when I'm done. The args would be the userid , the full > path to the mbox and where to put the index files.There's a difference between IMAP and POP3: With POP3 you really want to have message sizes cached. With IMAP you might not want to cache any fields, but depending on the client you might want to cache many different fields. That's not really easy to figure out beforehand (unless you just cache pretty much everything). Anyway assuming you want POP3 to be fast for most people, this'll do it: export MAIL=mbox:/tmp:INBOX=/path/to/mbox/file echo "quit" | /usr/local/libexec/dovecot/pop3 -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20081125/ae198533/attachment-0002.bin>