Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

Grabbing the email address in a filter variable

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


paul at myitcv

May 19, 2008, 2:36 PM

Post #1 of 3 (595 views)
Permalink
Grabbing the email address in a filter variable

All,

In a filter specification, I am aware that of the behaviour of the
$reply_address variable.

However, I have noticed that it contains the full value of the header
variable, e.g. it could contain:

Paul Jolly <paul [at] myitcv>

Is there a variable that contains only the email address, e.g. paul [at] myitcv
, according to the same precedence rules as $reply_address?

Many thanks,


Paul

--
## 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/


hs at schlittermann

May 19, 2008, 2:52 PM

Post #2 of 3 (560 views)
Permalink
Re: Grabbing the email address in a filter variable [In reply to]

Paul Jolly <paul [at] myitcv> (Mo 19 Mai 2008 23:36:03 CEST):
> All,
>
> In a filter specification, I am aware that of the behaviour of the
> $reply_address variable.
>
> However, I have noticed that it contains the full value of the header
> variable, e.g. it could contain:
>
> Paul Jolly <paul [at] myitcv>
>
> Is there a variable that contains only the email address, e.g. paul [at] myitcv
> , according to the same precedence rules as $reply_address?

${local_part:$reply_address}@${domain:$reply_address}

--
Heiko
Attachments: signature.asc (0.18 KB)


hs at schlittermann

May 19, 2008, 2:54 PM

Post #3 of 3 (559 views)
Permalink
Re: Grabbing the email address in a filter variable [In reply to]

Heiko Schlittermann <hs [at] schlittermann> (Mo 19 Mai 2008 23:52:42 CEST):
> Paul Jolly <paul [at] myitcv> (Mo 19 Mai 2008 23:36:03 CEST):
> > All,
> >
> > In a filter specification, I am aware that of the behaviour of the
> > $reply_address variable.
> >
> > However, I have noticed that it contains the full value of the header
> > variable, e.g. it could contain:
> >
> > Paul Jolly <paul [at] myitcv>
> >
> > Is there a variable that contains only the email address, e.g. paul [at] myitcv
> > , according to the same precedence rules as $reply_address?
>
> ${local_part:$reply_address}@${domain:$reply_address}

better yet:

${address:$reply_address}

exim4 -be '${address:"hans hanson" <h [at] hh>}'
h [at] hh

--
Heiko
Attachments: signature.asc (0.18 KB)

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.