I am trying to write server addin (C API, what is important I am not allowed to use ExtensionManager) to intercept incoming mail messages (copy notes from mail.box to another database and after that delete from mail.box). And trying… Well, everything seems to be fine, BUT after many successful copy/dels there is always a situation when router get the note faster than my task and forwards it to user mailfile. And then I cry. Just don’t know what to do. Please, if anyone could help…? Please.
Subject: Incoming mail interception. Router task is faster than me…
i don’t think you have any choice but to use the EMs as they are within the code path the messages take. anything else is just pure luck and if you even manage to actually grab the message then by the time you actually modify or try to update it it would have been processed already.
Subject: RE: Incoming mail interception. Router task is faster than me…
And this is the answer that I was afraid of… Anyway, thank you, Raymond, now I know. EM I shall try.