Problem with sieve_before
Robert Moskowitz
rgm at htt-consult.com
Tue Mar 21 16:03:03 EET 2017
On 03/21/2017 09:06 AM, chaouche yacine wrote:
> Hi Ger,
>
> sieve_before should be a path to sieve script file, not to a directory.
> in your configuration, you set sieve_before to /var/lib/dovecot/sieve/before which is a directory.
I don't get that reading:
https://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration
Either file or directory. If a file, it searches for the svbin of that
name, otherwise compiles your script. If directory, executes all in the
directory.
> what you need to do is figure out which sieve script you'd like to execute and its path rather.
> If you think that default2.sieve is the right script then
>
> set sieve_before to /var/lib/dovecot/sieve/before/default2.sieve
>
> -- Yassine.
>
>
>
>
> On Tuesday, March 21, 2017 12:56 PM, Ger Hooton Scoil Chroí Íosa Blarney <ghooton at scins.ie> wrote:
>
>
>
>
>
>> Hi All,
>> [...]
>> plugin {
>> [...]
>>
>>
>> sieve_before = /var/lib/dovecot/sieve/before
>> .................................
>>
>> In /var/lib/dovecot/sieve/before I have :
>>
>> drwxrwxrwx 3 mail mail 4096 Mar 20 23:47 ..
>>
>> -rw-rw-rw- 1 root root 195 Mar 21 09:57 default2.svbin
>>
>> -rwxrwxrwx 1 mail mail 157 Mar 21 11:12 default2.sieve
>>
>> default2.sieve is as follows:
>>
>> require ["fileinto"];
>>
>> if allof (header :matches "subject" "*JUNK*") {
>>
>> fileinto "INBOX.Junk";
>>
>> }
More information about the dovecot
mailing list