[SIEVE] pipe :copy to external program with arguments

spamvoll at googlemail.com spamvoll at googlemail.com
Tue Jul 31 00:45:43 EEST 2018


Hi all,

quick questions about sieve pipe:
I want to pipe spam messages to an external program with additional
parameters

my spamlearn.sieve script:

require ["vnd.dovecot.pipe", "copy", "imapsieve"];
pipe :copy "mybin" ["-h 127.0.0.1:44444" , "markspam"];

I also tried:
pipe :copy "mybin" ["-h 127.0.0.1:44444 markspam"];
pipe :copy "mybin" ["-h 127.0.0.1:44444"] ["markspam"];
pipe :copy :args ["-h 127.0.0.1:44444 markspam"] "mybin" ;

It never executes correct, it always ends with:
Error: sieve: Execution of script /my/path/to/spamlearn.sieve failed

So whats the correct syntax ?

What works is a single argument:
pipe :copy "myscript" ["markspam"];

Dovecot Version 2.3.2.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dovecot.org/pipermail/dovecot/attachments/20180730/3e58aad5/attachment.html>


More information about the dovecot mailing list