Re: [Exim] Exempting some rogue users from the system filter

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Philip Hazel
Ημερομηνία:  
Προς: Odhiambo Washington
Υ/ο: exim-users
Αντικείμενο: Re: [Exim] Exempting some rogue users from the system filter
On Mon, 29 Oct 2001, Odhiambo Washington wrote:

> Or is it even possible to do a linear search on some file, even??
>
> if $h_sender: contains "(rogue1|rogue2|wash)@"


if $h_sender: matches "(rogue1|rogue2!wash)@" then ...

uses a regular expression. However you might be better testing
$sender_adress rather than $h_sender, which might not exist.

For a search, try

if ${lookup{$sender_address}lsearch{/some/file}{yes}{no}} is yes then ...

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.