Outlook COM Add-In problems with IMAP

A

Aleksander

Hello,

We development an Outlook add-in for deleting some file attachments from
mail messages.
In OnExplorerSelectionChange() event , doing loop from 1 to attachments
count, where delete some attachments by Delete() method. After all
deletions, make Save() for MailItemPtr.

It's work fine, when i have POP3 or MAPI account, but have a problem with
IMAP mails: after Save() method, in imap folder with modified message
creating a one new message - copy of original message, i.e. with all
attachments, with "deleted" option (strike out in message list). If i click
this new-original message - created more one message, and so on :(

Question: how can i edit and save message in IMAP, in order to do not
created duplicate of messages?

Thanks!
 
K

Ken Slovak - [MVP - Outlook]

Unless the message are actually downloaded locally you can't as far as I
know. IMAP is a server side storage and unless you can send commands to the
server to do what you want it isn't doable.
 
S

Slaffko

Hi!
Thanks for answer. But I'm fully confident that this task is doable. I saw
that some Outlook Add-ins can make changes to mail received by IMAP and there
is no "deleted duplicates" appearing.
For example - ClamAV plugin for Outlook. Can you explain, how do they do it?
 
K

Ken Slovak - [MVP - Outlook]

I have no idea how they do it, ask them. They might be sending commands to
the server.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top