Re: sieve question

[email protected] Fri, 03 Jul 2026 11:07:41 +0200
Newsgroups gmane.linux.suse.general
Message-ID <[email protected]>
On Freitag, 3. Juli 2026 04:08:47 Mitteleuropäische Sommerzeit Masaru Nomiya wrote:
> Hello,
> 
> In the Message; 
> 
>   Subject    : sieve question
>   Message-ID : <[email protected]>
>   Date & Time: Thu, 02 Jul 2026 20:40:33 +0200
> 
> [mh] == [email protected] has written:
> 
> mh>  Hi,
> 
> mh>  does anyone have any idea, what might be wrong with
> 
> mh>    if anyof(
> mh>      # either: header :regex "Subject" "\\s+VUL\-[0-9]:\\s+"
> mh>      # or:
> mh>      header :contains "Subject" "VUL.0"
> mh>    ) {
> mh>      fileinto :create "Mailarchiv/nach Themen/Computer & Elektronik - System - linux - opensuse - bugs-vul";
> mh>    } else {
> mh>      fileinto :create "Mailarchiv/nach Themen/Computer & Elektronik - System - linux - opensuse - bugs";
> mh>    }
> 
> mh>  in my sieve script?
> mh>  It always gets to the else branch, when I get a mail from the bug list.
> mh>  If I copy the Subject line from the file in my dovecot maildir and send a mail manually with this subject it works as expected - the mail will be filed into bugs-vul.
> 
> How about this?
> 
>     header :regex "Subject" "\\s+VUL\-[0-9]:\\s+"
>                      |
>                      Y
>     header :regex "Subject" "VUL\-[0-9]:\\s+"

thx, but this also doesn't work,

> 
> In short, don't emails from ML start without a space?

The subject line looks like that:

"Subject: [Bug 1270051] VUL-0: chromium: security fixes in 150.0.7871.46"
I can check my regex against that string using perl, python, ... - it always succeeds, but not within my sieve script.


Bye.
Michael.
smime.p7s (application/pkcs7-signature, 3.9 KB) - not displayed