Hi, I?m using a multi-storage architecture in my email environment and maildrop as deliver command at mta. But to this deliver the mx servers mount nfs partitions - we need to use maildrop because many patches we inserted. How can I insert a piece of code at maildrop allowing it to update the dovecot indexes (which lib and/or function from dovecot I need to use ?) Best Regards, Fernando
On Wed, 2009-09-02 at 18:23 -0300, fernando at dfcom.com.br wrote:> How can I insert a piece of code at maildrop allowing it to update the > dovecot indexes (which lib and/or function from dovecot I need to use ?)You can't really just update indexes, at least not without a lot of code. What you could do is ask Dovecot to save the message via lib-storage API. But that's not much different from just having maildrop execute Dovecot deliver instead of saving the message to Maildir. I'd guess your patches don't touch the actual Maildir delivery? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20090902/ed7dab30/attachment-0002.bin>
Very interesting...I don?t like the idea maildrop calling dovecot deliver (as an external program). But I like the idea maildrop calling the dovecot api to save the message into the maildir. And yes, my patches don?t touch the maildir delivery. So, I can just change the maildrop 'deliver' function and call the dovecot one. Do you have any tip how to do that, I mean, witch function to use there ? How about quota, can I let maildrop or dovecot (through the api) update it (I believe that let maildrop do that makes more sense)? Thanks, Fernando> On Wed, 2009-09-02 at 18:23 -0300, fernando at dfcom.com.br wrote: >> How can I insert a piece of code at maildrop allowing it to update the >> dovecot indexes (which lib and/or function from dovecot I need to use ?) > > You can't really just update indexes, at least not without a lot of > code. What you could do is ask Dovecot to save the message via > lib-storage API. But that's not much different from just having maildrop > execute Dovecot deliver instead of saving the message to Maildir. I'd > guess your patches don't touch the actual Maildir delivery? > >