Outlook IMAP completed email and attachments download event
Asked Answered
G

1

9

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.

Goldbrick answered 13/2, 2012 at 18:38 Comment(0)
W
1

I've worked at the protocol level using IMAP and Outlook. Most IMAP clients, Outlook included, will only fetch the headers of new mail messages from the IMAP server to populate the email list for presentation to the user. They won't fetch the entire body of the message until the user clicks to open it. POP3 clients generally do download the entire message when it arrives. If your plugin can work as the user opens it then you might be okay (I'm not that familiar with the plugin API to know this). If you need to do something with the message as it arrives in IMAP, you might have to re-think your architecture and/or configuration.

Witkowski answered 26/12, 2012 at 15:9 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.