Outlook Addin: Move MailItem Changes Received Date

B

Ben

Hi

We have an addin that moves an item to a different folder, but at this point
the received date changes which confuses our users.

Is there any method of retaining the date when moving mail items?

Thanks
B
 
B

Ben

Hi

Just to add to this, maybe it is the way i am moving the item:

Dim objMessage As Outlook.MailItem
Dim explorer As Outlook.Explorer = _app.Application.ActiveExplorer
Dim objInbox As Outlook.MAPIFolder
Dim oCustFolder As Outlook.MAPIFolder



objInbox =
clsButton._app.Application.GetNamespace("MAPI").GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox)
oCustFolder = objInbox.Folders("Archived")



For Each objMessage In explorer.Selection


objMessage.Move(oCustFolder)

Next

THanks
B
 

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