Re: sieve question
Masaru Nomiya <[email protected]> Mon, 06 Jul 2026 09:31:58 +0900
| Newsgroups | gmane.linux.suse.general |
|---|---|
| Message-ID | <[email protected]> |
Hello, In the Message; Subject : Re: sieve question Message-ID : <[email protected]> Date & Time: Sun, 05 Jul 2026 10:57:13 +0200 [MH] == [email protected] has written: MH> On Sonntag, 5. Juli 2026 01:20:56 Mitteleuropäische Sommerzeit Masaru Nomiya wrote: MH> [...] MN> > You might be facing the same problem, too. MN> > https://talk.plesk.com/threads/sieve-regex-matcher-broken-on-centos-7-plesk-dovecot-pigeonhole-2-4-x-built-without-libpcre2.394519/ MH> I don't think so - this one (and many others) are working perfectly: MH> if header :regex [ "To", "From" ] "\\b([A-Za-z0-9._%+-]+)\@mike\.<domain1>\\b" { MH> set "localpart" "${1}"; MH> addheader :last "X-Sieve-localpart" "${1}"; MH> fileinto :create "Inbox/99 - misc migration${type}/${localpart}@<domain1>"; MH> } elsif header :regex [ "To", "From" ] "\\b([A-Za-z0-9._%+-]+)\@<domain2>\\b" { MH> set "localpart" "${1}"; MH> addheader :last "X-Sieve-localpart" "${1}"; MH> fileinto :create "Inbox/99 - misc migration${type}"; MH> } else { MH> fileinto :create "Inbox/99 - misc2 migration${type}"; MH> } Based on the source code of the original email, the Subject field has a very simple structure and doesn't match any regular expressions. In general, openSUSE does not send emails in a format that requires complex regular expressions on any of its mailing lists. If you think something is wrong, you should ask the devecot developers rather than posting here on this mailing list. Best Regards. -- ┏━━┓彡 Masaru Nomiya mail-to: nomiya @ ab.auone-net.jp ┃\/彡 ┗━━┛ Think! -- The IBM slogan --