CanonicalizeEmailAddress

I’ve been staring at CanonicalizeEmailAddress for hours now and every
time I think I understand its purpose and how it’s doing it, I am forced
to change my mind.

Can anyone make it plain & simple?
Kind Regards,

Mike Peachey, IT
Tel: +44 114 281 2655
Fax: +44 114 281 2951
Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK
Comp Reg No: 3191371 - Registered In England
http://www.jennic.com

Basically, you use it to replace an email address that you set a pattern
match for in RT_SiteConfig with another address, also set in
RT_SiteConfig

For example, in RT_SiteConfig you set…
Set($CanonicalizeEmailAddressMatch, ‘@foo.com$’);
Set($CanonicalizeEmailAddressReplace, ‘@foo.bar.com’);

So, when someone sends in an email to RT from john.doe@foo.com, it
replaces it with john.doe@foo.bar.com.

We use this feature to make sure all of our local emails come in the
same way so we can recognize external emails easier.

Craig Patterson-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Mike
Peachey
Sent: Wednesday, February 06, 2008 8:28 AM
To: RT Users
Subject: [rt-users] CanonicalizeEmailAddress

I’ve been staring at CanonicalizeEmailAddress for hours now and every
time I think I understand its purpose and how it’s doing it, I am forced

to change my mind.

Can anyone make it plain & simple?
Kind Regards,

Mike Peachey, IT
Tel: +44 114 281 2655
Fax: +44 114 281 2951
Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK
Comp Reg No: 3191371 - Registered In England
http://www.jennic.com
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Patterson, Craig wrote:

Basically, you use it to replace an email address that you set a pattern
match for in RT_SiteConfig with another address, also set in
RT_SiteConfig

For example, in RT_SiteConfig you set…
Set($CanonicalizeEmailAddressMatch, ‘@foo.com$’);
Set($CanonicalizeEmailAddressReplace, ‘@foo.bar.com’);

THANK YOU!!

It seemed all this time like it was actually important! :stuck_out_tongue:

While you’re at it, you couldn’t explain LookupUserInExternalDatabase
could you? It’s completely undocumented and I can’t find a single person
that knows exactly what it’s for and how to use it.
Kind Regards,

Mike Peachey, IT
Tel: +44 114 281 2655
Fax: +44 114 281 2951
Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK
Comp Reg No: 3191371 - Registered In England