Sieve_default

@lbutlr kremels at kreme.com
Wed Jun 13 20:26:01 EEST 2018



> On 12 Jun 2018, at 01:23, Alex JOST <jost+lists at dimejo.at> wrote:
> 
> Am 12.06.2018 um 01:01 schrieb @lbutlr:
>> I created a sieve_default to move any spam-tagged messages into the Junk mailbox automatically, but it doesn’t appear to be working (though the other imapsieve_mailbox… scripts are working).
>> From doveconf -n
>> plugin {
>>   imapsieve_mailbox1_before = file:/usr/lib/dovecot/sieve/report-spam.sieve
>>   imapsieve_mailbox1_causes = COPY
>>   imapsieve_mailbox1_name = Junk
>>   imapsieve_mailbox2_before = file:/usr/lib/dovecot/sieve/report-ham.sieve
>>   imapsieve_mailbox2_causes = COPY
>>   imapsieve_mailbox2_from = Junk
>>   imapsieve_mailbox2_name = *
>>   imapsieve_mailbox3_before = file:/usr/lib/dovecot/sieve/mark-read.sieve
>>   imapsieve_mailbox3_causes = COPY
>>   imapsieve_mailbox3_name = Archive
>>   sieve = file:~/.sieve;active=~/.active_sieve
>>   sieve_default = /usr/lib/dovecot/sieve/default.sieve
>>   sieve_default_name = spamassassin
>>   sieve_global_extensions = +vnd.dovecot.pipe +vnd.dovecot.environment
>>   sieve_pipe_bin_dir = /usr/lib/dovecot/sieve
>>   sieve_plugins = sieve_imapsieve sieve_extprograms
>> }
>> And
>> # cat /usr/lib/dovecot/sieve/default.sieve
>> if header :contains "X-spam-flag" "YES" {
>>      fileinto "Junk";
>> }
>> There are no user sieve files
>> # find /home -name "*sieve*" -type f
>> #
>> The x-spam-flag header in the message in my mailbox is definitely there and definitely set to yes.
> 
> I think you need to enable the 'fileinto' extension via 'require'. And did you pre-compile the script?

I added 

require "fileinto”;

To default.sieve

I did not pre-compile the script, but according to the docs that should not prevent it from working.

Spam, messages are still not being filed in to Junk, however.




More information about the dovecot mailing list