Returns a mail address with all unnecessary domains removed.
@OptimizeMailAddress( address )
address
Text or text list. The mail address to optimize.
optimizedAddress
Text or text list. The optimized address.
If the parameter is a list, the function operates on each element of the list, and the return value is a list with the same number of elements.
All domains between two duplicate domains, including the duplicate domain, are removed.
@OptimizeMailAddress ("username @firstdomain @secondomain @firstdomain @thirdomain")
@OptimizeMailAddress ("username @firstdomain @firstdomain @secondomain")
@OptimizeMailAddress ("username @firstdomain @secondomain @firstdomain @thirdomain" :"username @firstdomain @firstdomain @secondomain")