Move message from Inbox to Temp back to Inbox

  • Thread starter Thread starter eseitomer
  • Start date Start date
E

eseitomer

Hi,
I currently have a macro that creates a new task from an email. I wish
to make it so that once this task is set, that message is moved to a
temporary folder and then moved back to the Inbox the day before the
task is due. Any idea on how to that?
thanks in advance.
Nise
 
1. Move the message to the temp folder using
set MailItem = MailItem.Move(TargerFolder)
2. Store the new (moved) message entry id as a custom property using the
TaskItem.UserProperties collection (UserProperties.Add)
3. Read the stored entry id from UserProperties, open the message usingg
Namespace.GetItemFromID, move it to Inbox, update the custom property to the
entry id of the new (moved back to the Inbox) message.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Back
Top