Re: [Exim] PCRE question in system filter

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Andromeda
Date:  
À: Exim
Sujet: Re: [Exim] PCRE question in system filter
At 22:12 21/04/2001 -0400, you wrote:
>Ok. I've figured out the answer but I'm not sure I that I understand
>fully.


The string expansion filter page explained it quite well:

Standard RegEx: \s{25,}
Exim filter: \\s{25,}
quoted Exim filter: \\\\s{25,}

You may want to adjust your filter to:

$header_subject matches "\\\\s{25,}\\\\[?\\\\w{3,}\\\\]?\\$"

It will match the [ ] and a standard alphanumeric code. This thing's
removed 27 spam messages in just over a week.

Andromeda