Maybe something like:
/usr/local/exim/bin/exim -be
> ${extract{1}{.}{tom.foo.bar.com}}
tom
> ${if
match_local_part{${extract{1}{.}{tom.foo.bar.com}}}{tom:dick:harry}{true}{false}}
true
> ${if
match_local_part{${extract{1}{.}{tom.foo.bar.com}}}{joe:dick:harry}{true}{false}}
false
Sent by: exim-users-bounces@???
To: Dave Evans <exim-users-20081202@???>
cc: exim-users@??? (bcc: Dan Mitton/YD/RWDOE)
Subject: Re: [exim] Help crafting a prefix-only hostname wildcard
match
LSN: Not Relevant
User Filed as: Not a Record
Have you tried something like:
${extract{1}{.}{$sender_host_name}}
Sent by: exim-users-bounces@???
To: exim-users@???
cc: (bcc: Dan Mitton/YD/RWDOE)
Subject: Re: [exim] Help crafting a prefix-only hostname wildcard
match
LSN: Not Relevant
User Filed as: Not a Record
On Wed, Dec 31, 2008 at 04:53:28PM +0000, W B Hacker wrote:
> Wanted:
>
> A match to the first suffix *only* in a $sender_host_name or
> $sender_helo_name, regardless of presence, absence, or count of
> subsequent suffixes, if any, or even a proper <domain>.<tld>
>
> Can someone please kick me w/r what I am missing?
Regex?
--
Dave Evans
http://djce.org.uk/
http://djce.org.uk/pgpkey
--
## List details at
http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at
http://www.exim.org/
## Please use the Wiki with this list -
http://wiki.exim.org/
--
## List details at
http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at
http://www.exim.org/
## Please use the Wiki with this list -
http://wiki.exim.org/