mail filters
mick.crane
mc at mickiwiki.com
Mon Dec 19 03:59:00 UTC 2022
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 at vger.kernel.org" {
> fileinto "lkml";
> }
> elsif header :contains "X-Mailing-List"
> "linux-kernel at 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.
cheers
mick
More information about the dovecot
mailing list