Save mail as msg without attachments

Add-in Express™ Support Service
That's what is more important than anything else

Save mail as msg without attachments
 
Spiros Nikolopoulos




Posts: 42
Joined: 2012-01-05
No it is in the same folder of the original mail.
Posted 17 Aug, 2012 03:59:27 Top
Dmitry Kostochko


Add-in Express team


Posts: 2740
Joined: 2004-04-05
Hi Spiros,

This issue is a bit strange. It seems that you cannot delete an email item programmatically by calling the Delete method. Very weird.

I would suggest another solution:
1. Loop through the Attachments collection and save all attachments to a temp folder.
2. Remove all attachments.
3. Save the message without attachments to some folder.
4. Re-add all stored attachments anew into the Attachments collection.
5. Save the email message.
Posted 17 Aug, 2012 07:14:23 Top