How can I add additional recipient in Categorizer event?
Hi, All
The Categorizer event was not described by any version of MSDN.
According to my understanding(guess), it should be the appropriate
place if I should add some recipients. So I tried to hook the
ProcessItem method. I used the MailRecipientsAdd interface to add some
additional recipients. All return(HRESULT) seems OK, but the target
recipient cannot receive any mail. Any help please?
I am developing this program in an Exchange 2003 server. If I am
sending to an account outside the Exchange 2003, it seems working. But
If I send the mail to some "internal" user of that Exchange 2003, the
mail never reaches the person, and normally I will get a NDR some times
later.
On the other hand, I have checked the other recipients, which should be
categorized by Exchange. Besides the, for example, SMTP address, other
addresses like the X500, X400, MDB_GUID, USER_GUID, Legacy_Exchange_DN
have all been set. I wonder if it is because Exchange server request
one or all of them to deliver locally? However, if I want to set these
attributes (by IMailRecipientsAdd->PutProperty), the system returns
"Access Denied" error. So any one can tell me how Exchange "process"
the items?
BTW, is there any method to tell if an item under "process" is a
distribution list before expanding, or a ultimate mail recipient after
the expanding?
Thanks for any help.
Joe
date: Fri, 1 Apr 2005 09:07:05 +0800
author: Joseph QIAO