Thanks to the recent threads I now know my sieve script doesn't work or isn't applied. Here's my script:
-------- # -*- mode: sieve -*-
require ["fileinto"];
if header :contains "X-Spamd-Result" "True" { fileinto "Junk"; } elsif header :contains "List-Id" "tilde.club" { fileinto "tildeclub"; } else { keep; } stop; -------
It's in ~/.dovecot.sieve and the binary is in ~/.dovecot.svbin. I ran sievec to make sure the binary was up to date. The binary didn't change (identical to a copy I'd saved, according to 'diff'). When I run sieve-test on a list mail that I've saved to a file it says
----- barnold@tilde$ sieve-test ~/.dovecot.sieve ~/list.mail
Performed actions:
* store message in folder: tildeclub
Implicit keep:
(none) -----
which looks like what I want. If I add the '-e' switch it does in fact put the mail into my tildeclub folder. But all the list mail that I'm receiving goes to my inbox. Help?
On 2022-02-07 10:07 GMT, barnold@tilde.club wrote:
On 2022-02-05 15:43 GMT, barnold@tilde.club wrote:
Thanks to the recent threads I now know my sieve script doesn't work or isn't applied. Here's my script:
Did I fix it...
I did. In case anyone cares, this makes it work:
barnold@tilde$ ls -l sieve lrwxrwxrwx 1 barnold club 38 Aug 27 2020 sieve -> /home/barnold/.config/tilde-dots/sieve
barnold@tilde$ ls -l .dovecot.sieve lrwxrwxrwx 1 barnold club 52 Feb 7 10:01 .dovecot.sieve -> /home/barnold/.config/tilde-dots/sieve/dovecot.sieve
barnold@tilde$ ls -l .config/tilde-dots/sieve total 8 -rw-r----- 1 barnold club 276 Feb 7 09:50 dovecot.sieve -rw-r----- 1 barnold club 400 Feb 7 09:51 dovecot.svbin
i haven't written a sieve script in a while... you can use a managesieve client like the thunderbird extension or the one on our webmail: https://webmail.tilde.club/#/settings/filters
On 2/7/2022 5:17 AM, barnold@tilde.club wrote:
On 2022-02-07 10:07 GMT, barnold@tilde.club wrote:
On 2022-02-05 15:43 GMT, barnold@tilde.club wrote:
Thanks to the recent threads I now know my sieve script doesn't work or isn't applied. Here's my script:
Did I fix it...
I did. In case anyone cares, this makes it work:
barnold@tilde$ ls -l sieve lrwxrwxrwx 1 barnold club 38 Aug 27 2020 sieve -> /home/barnold/.config/tilde-dots/sieve
barnold@tilde$ ls -l .dovecot.sieve lrwxrwxrwx 1 barnold club 52 Feb 7 10:01 .dovecot.sieve -> /home/barnold/.config/tilde-dots/sieve/dovecot.sieve
barnold@tilde$ ls -l .config/tilde-dots/sieve total 8 -rw-r----- 1 barnold club 276 Feb 7 09:50 dovecot.sieve -rw-r----- 1 barnold club 400 Feb 7 09:51 dovecot.svbin
tildeclub@lists.tildeverse.org