Hi, I am working on an outlook plug-in. Now, I have a requirement to know the attached file name, size and possible then the content of mail before downloading the mail in the outlook. So, we can take action accordingly and delete the mail then and there. I know the new mail event is fired from Outlook when a new mail arrived. So, this event is suites for me or not? I don’t know whether it’s fired after download before to download? Please help me on this. Thanks
+1
A:
It's fired after download (when the new mail item is actually in your inbox).
Based on MSDN:
The NewMail event fires when new messages arrive in the Inbox and before client rule processing occurs. If you want to process items that arrive in the Inbox, consider using the ItemAdd event on the collection of items in the Inbox. The ItemAdd event passes a reference to each item that is added to a folder.
Bolu
2010-10-25 10:56:10
I think this should be a comment, and what do you want to achieve anyway? You can always do your check after download and delete it if you want.
Bolu
2010-10-25 14:24:28