[rt-users] multiple email addresses for one user

darren chamberlain darren at boston.com
Fri Mar 21 12:04:28 EST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

* John Gedeon <jgedeon at qualcomm.com> [2003-03-21 11:53]:
> I believe that function only works right if you know the standard
> format of the emails people will use. For example if i have
> john at example.com and j_g at sample.org and jhq at why.com how would you use
> the CanonicalizeEmailAddress function to associate those with the same
> user, even if they had the same domain unless you could look up the
> emails in an LDAP directory which stored all the emails as well as the
> username used in LDAP and RT.
> 
> That make sense to anyone else besides me?

Yes, that is exactly correct.  But, I'm assuming that there is some way
of automatically mapping usernames that come in via email to a canonical
username.  This might be /etc/aliases, a NIS map, an LDAP query, or
possibly something even more baroque, but there has to be some sort of
automated way to map email addresses to usernames.

In the example you use above, what you need is effectively:

  %address_to_user = (
    # Email address     => RT Username
    'john at example.com'  => 'john',
    'j_g at sample.org'    => 'john',
    'jhq at why.com'       => 'john',
    ...
  );

  sub CanonicalizeAddress {
      my $address = shift;
      return $address_to_user{$address};
  }

Though (hopefully!) %address_to_user come from a lookup to an existing
system.

(darren)

- -- 
The awful thing about getting it right the first time is that nobody
realizes how hard it was.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (SunOS)

iD8DBQE+e0YbzsinjrVhZaoRAtKAAJ9Wz+tJlvPWT+ImZqWI7l2q8TO5ewCgljMJ
9OwOktmmEtKB5hQN/Di7leg=
=C0GB
-----END PGP SIGNATURE-----



More information about the rt-users mailing list