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.
Archived from group: microsoft>public>exchange>development