Re: [Exim] PCRE question in system filter

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Jason Robertson
Dátum:  
Címzett: Tabor J. Wells, exim-users
Tárgy: Re: [Exim] PCRE question in system filter
This is what I have

if ((($header_SUBJECT: matches "(\\.\\+)\\\\s{5}([a-z0-9][a-z0-9]*)\\$") or
($header_SUBJECT: matches "(\\.\\+)\\\\s{5}(\\\\[[a-z0-9][a-z0-9]*\\\\])\\$") or
($header_SUBJECT: matches "(\\.\\+)\\\\s{5}(\\\\([a-z0-9][a-z0-9]*\\\\))\\$") or
($header_SUBJECT: matches "(\\.\\+)\\\\s{5}{\\\\([a-z0-9][a-z0-9]*\\\\)}\\$") or
($header_SUBJECT: matches "(\\.\\+)\\\\s{5}(-[a-z0-9][a-z0-9]*)\\$")
) and (($header_from: is not no-reply@???) or $header_to: is not
support@???))
then
<your work
endif


On 21 Apr 2001, at 15:44, Tabor J. Wells wrote:

Date sent:          Sat, 21 Apr 2001 15:44:30 -0400
From:               "Tabor J. Wells" <twells@???>
To:                 exim-users@???
Subject:            [Exim] PCRE question in system filter


> I'm having trouble with a regular expression match in my system filter
> and I'm just not seeing what I'm doing wrong. I've been over the PCRE
> doc several times and I think what I'm doing is correct but it still
> doesn't match.
>
> To match:
>
> Subject: Something                     [abcde]

>
> I'm using:
>
> $h_subject matches "\\\\s{10,}\[\\\\w{4,8}\]"
>
> an exim -d9 -bF shows:
>
> Match expanded arguments:
>   Subject = Something                     [abcde]
>   Pattern = \s{10,}[\w{4,8}]
> Sub-condition is false: $h_subject matches \\s{10,}[\\w{4,8}]

>
> What am I missing here?
>
> Thanks,
>
> Tabor
>
> -- 
> --------------------------------------------------------------------
> Tabor J. Wells                                     twells@???
> Fsck It!                 Just another victim of the ambient morality

>
>




---
Jason Robertson                
Network Analyst            
jason@???    
http://www.astroadvice.com