Re: [exim] Extracting the last field

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Todd Lyons
Date:  
À: exim-users
Sujet: Re: [exim] Extracting the last field
On Thu, Jun 27, 2013 at 1:18 AM, Jakob Hirsch <jh@???> wrote:
>>
>> I need to extract the last field when delimiter is '@'.
> Why not use the expansion operators that are made just for this purpose?
> ${domain:${address:"abc@???" <ghi@???>}}


Based on the example given by Soumya, it should work. If the provided
data is a multi address line, such as a multi recipient To: field,
then the ${address:} expansion will fail. You need to use
${addresses:} to get them in a list, then use something like
${extract} or ${reduce} to get the one out of the list that you want.

...Todd
--
The total budget at all receivers for solving senders' problems is $0.
If you want them to accept your mail and manage it the way you want,
send it the way the spec says to. --John Levine