info.mailtraq.com > Management > Script Functions A-Z > SameAddress() SameAddress()Determines whether two strings evaluate to the same fully qualified address. Comments are removed from the address strings given as arguments to reduce the address to canonical form before evaluation. Unqualified addresses (i.e. addresses with no domain information) are canonicalised to LOCALHOST before evaluation.
Boolean := SameAddress( address , address )
- address
- The strings to be compared
- Boolean
- TRUE if the addresses resolve to be the same, otherwise FALSE
// From: "Fred Bloggs" <fred@home.example.com>
// Reply-To: fred@home.example.com (Resting Up)
"TRUE" := SameAddress(Header("From"), Header("Reply-To")) |