Re: [exim] Regular expressions with $header_to?

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Robert Nicholson
Date:  
À: exim-users
Sujet: Re: [exim] Regular expressions with $header_to?
Is it not possible to do something like this?

if $header_from: does not contain "robert@???" and
   ${addresses:$header_to:} does not match ":?robert\@elastica\.com" and
   ${addresses:$header_cc:} does not match ":?robert\@elastica\.com"
then
    logwrite "junk header_from $header_from: header_to $header_to:"
    seen finish
endif


from what I can see there appears to be a syntax error as I never
see anything in the log.

On Mar 23, 2008, at 6:34 PM, Robert Nicholson wrote:

> How can I differentiate b/w
>
> 1. poolrobert@???
> 2. 3cffejjdbjfipdnkkjiiooieomcjaa.robert@???
> 3. "Robert Nicholson" <robert@???>
> 4. robert@???
>
> without using "is" ie. exactly comparison
>
> I want to be able to canoncalize the address before the comparison.
>
> in the above I want reject 1 & 2 but not 3 and 4
>
>
>