Re: [exim] Regex help

Inizio della pagina
Delete this message
Reply to this message
Autore: Chris Edwards
Data:  
To: Exim-users
CC: 
Oggetto: Re: [exim] Regex help
On Fri, 11 Mar 2005, Marc Perkel wrote:

| Trying to write a regex string to detect 8-bit characters in various
| headers. What I want to do is drop message with lots of 8-bit characters
| in the subject line.


Try:

  deny    condition = ${if match{$h_subject:}{\N[\x80-\xFF]{3,}\N}{yes}{no}}


NOTE - in reality, a fair number of otherwise-legit mails from eastern
europe and the far east have 8bit characters in the subject and other
headers. Whether this matters to you depends on the size and diversity of
your user base...