On 12/18/22 20:59, mick.crane wrote:
On 2022-12-13 00:42, John Stoffel wrote:
Maybe you're filtering the wrong way?
I use something like this and it's pretty good:
require ["fileinto", "envelope"]; require "imap4flags"; require "regex";
if header :contains "Sender" "linux-kernel-owner@vger.kernel.org" { fileinto "lkml"; } elsif header :contains "X-Mailing-List" "linux-kernel@vger.kernel.org" { fileinto "lkml"; } else { # The rest goes into INBOX # default is "implicit keep", we do it explicitly here keep; }
I'm sorry, question should have gone to roundcube list as it is roundcube plugin "manage_sieve" am using to make rules. Don't see "elsif" in rule options which is likely what I want.
I'll search for the sieve config file on Debian bullseye.
This is the sieve config in my dovecot:
root@bilbo:/etc/dovecot/conf.d# grep \/var\/vmail * 10-mail.conf:mail_location = maildir:/var/vmail/%d/%u 90-sieve.conf: sieve = file:/var/vmail/sieve/%d/%u/sieve;active=/var/vmail/sieve/%d/%u/.dovecot.sieve 90-sieve.conf: sieve_default = file:/var/vmail/global.sieve
That config results in this:
root@bilbo:/etc/dovecot/conf.d# ls -al /var/vmail/sieve/elyograg.org/elyograg@elyograg.org/ total 44 drwxr-x--- 3 vmail mail 4096 Sep 30 18:11 . drwxr-x--- 5 vmail mail 4096 May 18 2022 .. lrwxrwxrwx 1 vmail mail 21 Jul 23 14:55 .dovecot.sieve -> sieve/phpscript.sieve -rw-r----- 1 vmail mail 7856 Aug 5 2021 .dovecot.sieve.log -rw-r----- 1 vmail vmail 10305 Feb 18 2020 .dovecot.sieve.log.0 -rw-r----- 1 vmail mail 10054 Sep 30 17:46 .dovecot.svbin drwxr-x--- 3 vmail mail 4096 Sep 30 17:45 sieve
I actually have a filter for exactly that purpose:
https://www.dropbox.com/s/5alqcawio2e1vki/roundcube_managesieve_lkml.png?dl=...
I cannot remember how I added list-id to the choices for the header, though. I tried looking it up with google and everything that came up wasn't done on my install. I can't find the customization.
Thanks, Shawn