help me with a regex - ORF Forums

help me with a regex RSS Back to forum

1

I keep getting undeliverable messages blocked by "unicode comment" so It is next to impossible to find the offending string.

how can I whitelist this header
In-Reply-To: <>

On a single line.
starts with "In-Reply-To"
ends with "@mydomain.com.sg>"
with [A-F0-9] in between.

having a hard time with this

by Chris Low more than 10 years ago
2

@Chris Low: You can easily identify the expression causing the false positives by changing the comment text to something non-unicode (e.g., simple numbers). By the way we will address this in future versions.

As for the whitelisting, you can try the following:

1. Start the Administration Tool
2. Navigate to Configuration / Filtering - On Arrival / Keyword Whitelist
3. Click New
4. On the Filter properties tab, set the scope to "Email header (raw MIME)", add some comment
5. On the filter expression tab, insert the following expression:

.*^In-Reply-To:\s*<?[A-F0-9]*@mydomain\.com\.sg>?\s*$

and set the expression typoe to "Regular expression".

6. Click OK, press Ctrl + S to apply the changes.

by Krisztian Fekete (Vamsoft) more than 10 years ago
(in reply to this post)

New comment

Fill in the form below to add a new comment. All fields are required. If you are a registered user on our site, please sign in first.

It will not be published.
hnp1 | hnp2