Re: [Exim] Problem with data line....

Top Page
Delete this message
Reply to this message
Author: krelvinaz
Date:  
To: exim-users
Subject: Re: [Exim] Problem with data line....
> From: <krelvinaz@???>
> Subject: [Exim] Problem with data line....
>
> I am really stuck on this... I thought I had it figured out but in final testing of the rules with all the different variations, I realized the rule I was using
> for one of them is wrong.
>
> I have the following
>
>     data = "\"$local_part@$domain\"@remote.domain.name"

>
> However, this is not exactly what I want....
>
> Input is:
>
>     $domain = attfax.domain.name

>
>     $local_part = 999999

>
> Result = "999999@???
>
> What I want is....
>
> Result = "999999@???
>
> Note the lack of .domain.name in the local part section...
>
> What can I do with
>
>     data = "\"$local_part@$domain\"@remote.domain.name"

>
> To achieve this...?? I'm assuming some sort of regex will work. It needs to exclude the
>
>     .domain.name

>
> from the $domain section so that it only has the attfax in it.


BTW... I tried something like:

data = "\"$local_part@${substr{0}{${strlen{$domain}-10}{$domain}\"@remote.domain.name"

but the syntax is wrong.