Hello!
I'd like to filter some emails with the subjects like this:
Subject1: [Blah blah blah] 00004
Subject2: [Blahblah BLAH BLAH] 00001
I tried this:
( \[Blah blah blah\] 00004 | \[Blahblah BLAH BLAH\] 00001)
But I't not working, how can I do that?
Postmaster filters, email with [] in the subject
Moderator: crythias
-
- Znuny newbie
- Posts: 5
- Joined: 25 Jan 2024, 17:46
- Znuny Version: 6.5.2
- Real Name: Emanuele Coraia
- Company: Infogest srl
-
- Administrator
- Posts: 4129
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: Postmaster filters, email with [] in the subject
Hello,
I do not know if the whitespace are intentional, but I would try this regular expression:
- Roy
I do not know if the whitespace are intentional, but I would try this regular expression:
Code: Select all
(\s*\[Blah blah blah\] 00004|\s*\[Blahblah BLAH BLAH\] 00001)
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?