[exim] Extracting the last field

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: soumya tr
Ημερομηνία:  
Προς: exim-users@exim.org
Αντικείμενο: [exim] Extracting the last field
Hi,

Is it possible to extract the last field using extract in exim?

Suppose the input is:

"abc@???" <ghi@???>

I need to extract the last field when delimiter is '@'.
Using ${extract {3}{@}{"abc@???" <ghi@???>}}, I can obtain jkl.com>
. But i needed a generic solution. As incase there are >3 @ , then the
obtained output will not be the expected one. How can I achieve this?

Thanks in advance.

--
Regards,
Soumya