bug-mailfromd
Re: [Bug-mailfromd] regex applied to variable
Hi Sergey, I thought about using your loop for removing the '.'[1], to
loop through subdomains. But I wonder if this would be good approach.
Did you have an efficient loop to generate this:
ec2-3-218-185-161.compute-1.amazonaws.com
compute-1.amazonaws.com
amazonaws.com
com
[1]
17 # remove '.'
18 loop while emaillocal matches '(.+)\.(.*)'
19 do
20 set emaillocal \1 . \2
21 done
-----Original Message-----
Cc: bug-mailfromd
Subject: Re: regex applied to variable
Marc Roos <M.Roos@xxxxxxxxxxxxxxxxx> ha escrit:
> I would like to remove the '.' from the localpart(email).
I've shown in my previous mail how to do that. Please see my prior
posting.
> [1]
> http://puszcza.gnu.org.ua/software/mailfromd/manual/mailfromd.html#s_0
> 02dexpression
That's not applicable to variables. The s-exprs are used in import
statements to optionally transform imported symbols.
Best regards,
Sergey