Re: sieve question

[email protected] Sun, 05 Jul 2026 10:57:13 +0200
Newsgroups gmane.linux.suse.general
Message-ID <[email protected]>
On Sonntag, 5. Juli 2026 01:20:56 Mitteleuropäische Sommerzeit Masaru Nomiya wrote:
[...]
> 
> You might be facing the same problem, too.
> 
>     https://talk.plesk.com/threads/sieve-regex-matcher-broken-on-centos-7-plesk-dovecot-pigeonhole-2-4-x-built-without-libpcre2.394519/

I don't think so - this one (and many others) are working perfectly:

    if header :regex [ "To", "From" ] "\\b([A-Za-z0-9._%+-]+)\@mike\.<domain1>\\b" {
      set "localpart" "${1}";
      addheader :last "X-Sieve-localpart" "${1}";
      fileinto :create "Inbox/99 - misc migration${type}/${localpart}@<domain1>";
    } elsif header :regex [ "To", "From" ] "\\b([A-Za-z0-9._%+-]+)\@<domain2>\\b" {
      set "localpart" "${1}";
      addheader :last "X-Sieve-localpart" "${1}";
      fileinto :create "Inbox/99 - misc migration${type}";
    } else {
      fileinto :create "Inbox/99 - misc2 migration${type}";
    }

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