Is any posibility to pass parameters/environment variables to deliver with sieve plugin? I have some procmail rules to decide where mail should go, which can't be migrated to sieve (uses external programs). So far I write it to maildirs, but I wonder to migrate to mdbox, and procmail can't handle it. Any ideas? KJ -- http://modnebzdury.wordpress.com/2009/10/01/niewiarygodny-list-prof-majewskiej-wprowadzenie/ mo?na nie mie? nawet ?adnego sensownego argumentu, a dzi?ki odpowiedniej gestykulacji stworzy? poczucie wiarygodno?ci. Puls Biznesu
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, 12 Feb 2010, Kamil Jo?ca wrote:> Is any posibility to pass parameters/environment variables to deliver > with sieve plugin?No. But you could check the "extdata" extension posted by Stephan Bosch lately. Regards, - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iQEVAwUBS3wO2L+Vh58GPL/cAQImYwf7BcJmElNVVVaXSkkuSucGrAUnTu5lXrW+ +f1TCfAlhyd5DDUYvYjKV2/gGzLSQt3u+BRQ5VmQaQOibdceb0Q4L3NTp8CHhqg9 PiMRsEqbvGkLlKRQSiX1M6yomAkfdBrpDHE7P5327pl8i62ySPeMF+Axcrk2aRcL 344uqfk/gNz1mZOdqMD3tXdHB+iXR9eKMAvJ/iaTwIclGXH/RIF+xq+d0FcG8M81 LL1LqXD0B2iGRBj7k2DUBdA5VxIDgZrqjRkBDcGEFvJgC5MZNNN4EuH7rMqWj0Ue uONwEO0zloRRdmfFBOsrNmGrGy2rTQidE0JTFh9MtLogIvn4kENx6w==lBus -----END PGP SIGNATURE-----
On Fri, 2010-02-12 at 14:42 +0100, Kamil Jo?ca wrote:> Is any posibility to pass parameters/environment variables to deliver > with sieve plugin? > > I have some procmail rules to decide where mail should go, which > can't be migrated to sieve (uses external programs). So far I write it > to maildirs, but I wonder to migrate to mdbox, and procmail can't > handle it. Any ideas?If you've gone that far, how about just calling deliver from procmail like: deliver -m your_mailbox_name (With Sieve that actually only specifies the default mailbox, which is used only if Sieve doesn't decide to save it elsewhere.) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20100220/cb6b388c/attachment-0002.bin>
Andrzej Adam Filip
2010-Feb-20 10:40 UTC
[Dovecot] passing parameters to deliver -> generating data for sieve
Timo Sirainen <tss at iki.fi> wrote:> On Fri, 2010-02-12 at 14:42 +0100, Kamil Jo?ca wrote: >> Is any posibility to pass parameters/environment variables to deliver >> with sieve plugin? >> >> I have some procmail rules to decide where mail should go, which >> can't be migrated to sieve (uses external programs). So far I write it >> to maildirs, but I wonder to migrate to mdbox, and procmail can't >> handle it. Any ideas? > > If you've gone that far, how about just calling deliver from procmail > like: > > deliver -m your_mailbox_name > > (With Sieve that actually only specifies the default mailbox, which is > used only if Sieve doesn't decide to save it elsewhere.)Slightly extended approach may make procmail script generate some extra headers (based on external programs) before executing deliver so sieve can consider "extra data". -- [pl>en: Andrew] Andrzej Adam Filip : anfi at onet.eu It has long been an axiom of mine that the little things are infinitely the most important. -- Sir Arthur Conan Doyle, "A Case of Identity"
Timo Sirainen <tss at iki.fi> writes:> On Fri, 2010-02-12 at 14:42 +0100, Kamil Jo?ca wrote: >> Is any posibility to pass parameters/environment variables to deliver >> with sieve plugin? >> >> I have some procmail rules to decide where mail should go, which >> can't be migrated to sieve (uses external programs). So far I write it >> to maildirs, but I wonder to migrate to mdbox, and procmail can't >> handle it. Any ideas? > > If you've gone that far, how about just calling deliver from procmail > like: > > deliver -m your_mailbox_name > > (With Sieve that actually only specifies the default mailbox, which is > used only if Sieve doesn't decide to save it elsewhere.)Yes, I know about this switch. Maybe I should tourned off sieve (So switch works unconditionally) and rewrite all my destinations like deliver -m <mbox> Pity :( KJ -- http://modnebzdury.wordpress.com/2009/10/01/niewiarygodny-list-prof-majewskiej-wprowadzenie/ The world is coming to an end ... SAVE YOUR BUFFERS!!!