Exchange 2000/2003 User Path
From: Steffen Balslev (steffen_at_spamfighter.com)
Date: 06/25/04
- Next message: Philip Colmer: "Re: How to get list of all email domains supported?"
- Previous message: Henning Krause: "Re: Retriving custom contact information with webdav"
- Next in thread: Toby Worth: "RE: Exchange 2000/2003 User Path"
- Reply: Toby Worth: "RE: Exchange 2000/2003 User Path"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 25 Jun 2004 11:23:30 +0200
Hi boys and girls.
I'm developing an event sink for Exchange 2000 and 2003 recieving the
OnSyncSave store wide event.
The idea is to revieve the event and asynchronously process it on a
different thread.
Now it works as it should but my question to you is related to the post
processing of the items.
Let's set up a senario:
AD Users: Loginname Exchange Alias Primary email
User UserA
UserA@my-domain.com
UserB UserB
BUser@my-domain.com
UserC UserC
User@my-domain.com
UserD UserD
User@my-seconddomain.com
Incomming mails to usera@my-domain.com sink recieves url (sink param:
bstrURLItem) like:
file://./backofficestorage/my-domain.com/mbx/usera/inbox/newmail.eml
Using the definition from
http://msdn.microsoft.com/library/en-us/e2k3/e2k3/_exch2k_the_file_url_scheme.asp?frame=true i
can resolve the path to a username.
Definition file://./backofficestorage/domain-name/MBX/user-alias/path
results in "usera" as the user, because the usera has exchange alias usera.
However when revieving mails for userb it looks a bit different, here I
recieve a url like:
file://./backofficestorage/my-domain.com/mbx/buser/inbox/newmail.eml
Using the definition from before I have to look for user with exchange alias
"buser" witch is not found. So I have changed the path definition to:
file://./backofficestorage/domain-name/mbx/user-primary-email-alias/path
This definition will help me find the user with user-primary-email-alias
"buser" so this works.
But but and but, when I recieve mails for UserC ex.
file://./backofficestorage/my-domain.com/mbx/user/inbox/newmail.eml I am
again faced with a problem. There are two users with the
user-primary-email-alias named "user" so Again I have to change the
definition, now its:
file://./backofficestorage/user-primary-email-domain-name/mbx/user-primary-email-alias/path
Now the big question is: DID I MISS SOMETHING, or is there an easier way to
lookup the owner of the new mail from the path of the mail that works with
out having to keep all of theese "fixes" in mind.
Regards
Steffen Balslev
- Next message: Philip Colmer: "Re: How to get list of all email domains supported?"
- Previous message: Henning Krause: "Re: Retriving custom contact information with webdav"
- Next in thread: Toby Worth: "RE: Exchange 2000/2003 User Path"
- Reply: Toby Worth: "RE: Exchange 2000/2003 User Path"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|