My Outlook add-in (C++) processes received email attachments as they are received, which works fine for POP3 accounts, but doesn't work with IMAP accounts because I only receive the email header with the events I use (I tried the events NewMailEx
, and ItemLoad
events for the interface _Application
I also tried the events Read
and BeforeAttachmentRead
for the interface _MailItem
). I am looking for the appropriate event that is fired just after an IMAP email is completely downloaded including attachments, but before the attachment is opened by the user. I don't want to force the download of attachments, I just want to be able to know when a new email with attachments is accessible, which will probably happen when the user reads it.
Note: It's important that I am able to access the attachment before the user opens it.
Any help would be greatly appreciated.