Kārlis Repsons
2010-Jan-20 21:11 UTC
[Dovecot] Conditionally use a sieve script with deliver?
I found a post in this list [0], which says sieve scripts can be used to deliver mail as read. However, can it be done somehow conditionally, I mean, with a direct or indirect switch for deliver? For a nonexistent example, it would be simply < | deliver -m path/to/maildir -r > or maybe an environment variable could be exported to deliver sieve and checked there? (Still not sure if sieve can replace maildrop in my case, however, using it with dovecot creates various problems with interoperability; but perhaps I can just add those imap4flags like "\\seen" myself to the message with maildrop and avoid mess with sieve at all?) [0] http://www.dovecot.org/list/dovecot/2008-July/032294.html -------------- 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/20100120/3cf80d8a/attachment-0002.bin>
Marcus Rueckert
2010-Jan-21 11:13 UTC
[Dovecot] Conditionally use a sieve script with deliver?
On 2010-01-20 21:11:59 +0000, K?rlis Repsons wrote:> I found a post in this list [0], which says sieve scripts can be used to > deliver mail as read. However, can it be done somehow conditionally, I mean, > with a direct or indirect switch for deliver? > For a nonexistent example, it would be simply > < | deliver -m path/to/maildir -r > or maybe an environment variable could be > exported to deliver sieve and checked there? > > (Still not sure if sieve can replace maildrop in my case, however, using it > with dovecot creates various problems with interoperability; but perhaps I can > just add those imap4flags like "\\seen" myself to the message with maildrop and > avoid mess with sieve at all?) > > [0] http://www.dovecot.org/list/dovecot/2008-July/032294.htmljust curious: what stops you from migrating your maildrop rules to sieve? darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org