Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Sun, 24 Feb 2008 14:14:02 -0800,    group: microsoft.public.exchange.development        back       


Exchange 2007 BUG in OnSyncsave Event Sink processing   
Hello!

I would like to inform about bug in OnSyncSave which MS come into Exchange 
2007 SP1 x64(maybe Exchange 2007 x64 also has it I'll check) and I don't know 
how to fix it (Exchange 2003 and 2000 handles it correctly).
I am experienced user/coder of this Event Sink and my code works properly on 
all earlier Exchange 2000/2003.

How to reproduce problem:
---------------------------------
If You implement very simple OnSyncSave Event sink - add "comment line" at 
the begining or at the end of e-mail (use for example IMessage and add some 
textline to the TextBody of e-mail). 
If You send e-mail to single recipient the text is added ONCE correctly.
What is happend if You send e-mail to two recipients? (second recipient in 
TO: or in CC:)
The first recipient is getting e-mail with added text ONCE - OK, but second 
recipient has added it twice. Test e-mail for three recipients. The third has 
the text added three times. 
To inform You I check Flags in OnSyncSave:
if ((lFlags & EVT_SYNC_BEGIN) && (lFlags & EVT_IS_DELIVERED))
{ to add comment line }

Why is it so?
--------------
The first OnsyncSave event fired for first recipient has original e-mail at 
input for processing (saved by me to file just before processing), but 2nd 
recipient has already modified e-mail for previous recipient at input (saved 
by me to file just before processing), and the third one has modified e-mail 
which for second recipient and so on.

I can tell that my code worked properly for years in previous exchange 
2000/2003 and through all Service Packs and e-mail sent to multiple 
recipients was processed only from it's original form (not modified).

Can You tell me how to solve it or is it possible to force Microsoft to make 
the processing event sink in original way?

Kind Regards.
date: Sun, 24 Feb 2008 14:14:02 -0800   author:   Young Developer

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us