A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Saved Property of MailItem is copied



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 25th 10, 11:47 AM posted to microsoft.public.outlook.program_addins
Scratch Head
external usenet poster
 
Posts: 1
Default Saved Property of MailItem is copied

Hi,

I wish to copy the original mail to another separate folder. My code is as
follows:

using Outlook = Microsoft.Office.Interop.Outlook

MailItem mailItem; // mailItem is set accordingly.

Outlook.Namespace namespc = mailItem.Application.GetNamespace("MAPI");
Outlook.folder =
(Outlook.Folder)namespc.GetDefaultFolder(Outlook.O lDefaultFolders.olFolderDrafts);
Outlook.MailItem tempMail = (Outlook.MailItem)mailItem.Copy(); // This is
the statement where mailItem.Saved changes from true to false
Outlook.MailItem newMail = (Outlook.MailItem)tempMail.Move(folder);

Pls advise why this phenomenon is observed.
Ads
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MailItem object has no property for when a reply was sent mmoore Outlook and VBA 3 December 14th 09 01:16 AM
Regarding MailItem.Body Property Bharathi Outlook and VBA 3 June 22nd 07 03:47 PM
problem using Parent property of MailItem [email protected] Outlook and VBA 4 March 31st 07 10:39 AM
MailItem To property and display name Olivier Langlois Outlook and VBA 1 September 11th 06 06:10 PM
Set MailItem.Sender Property Joshua Ellul Add-ins for Outlook 2 June 8th 06 07:30 PM


All times are GMT +1. The time now is 12:56 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.