Can we handle the email event before it displays to the user in the inbox

I am trying to handle the email event handler before it is displayed to the user in the inbox.

The callback function registered to handle the “before open” events seems to be getting called even before the email reaches the inbox.

I did not have problem with lotus notes 7. The call back function got called only when the email was actually opened

I am using

EM_REGISTER to register the function

EM_NSFNOTEOPEN/EM_NSFNOTEOPENEXTENDED to check if the open status of the note

can somebody help me with this?