Pages: 1
RSS
Help with macros for address, How to extract part of the address (i.e. the address without the domain)
 
Hello,
I made a template with the following text:
"we have received an email from <john.doe@tagada.fr>
Unfortunately the user <john.doe> is not identified in our services etc. "

I am looking for a macro capable of automatically placing the part of the email address preceding the domain name. (i.e. without @tagada.fr in my example)
I can do it with names:
%IF:"%OTONAME"="%OTOADDR":"%OTOADDR":"%OTONAME <%OTOADDR>"

but I don't know how to do it with parts of the address. Anyone know?
Edited: les renardeaux - 24 June 2020 01:14:22
 
I answer myself and ask this there if it might interest someone.

Some RegEx solved my search:
%_BOUNCED='%setpattregexp=#(?i)\A(.*?)\@.*#%RegExpBlindMatch=#%OTOADDR#%SubPatt=#1#'%_BOUNCED
(all on one line)

Of course% _BOUNCED is the name I placed to name my variable, everyone will do as they want if they need to.
Edited: les renardeaux - 01 July 2020 21:41:50
Pages: 1