Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / October 2007

Tip: Looking for answers? Try searching our database.

Change Redemption CreationTime of the new message

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MA - 29 Oct 2007 07:20 GMT
Hi,

I am using the Redemption library to create a sent message. I would
like to change the Creation time of the message to the sent date time.
At this moment the creation time is the time message created. Can I
change the CreationTime?

==============================================
RDOFolder folder =
session.GetDefaultFolder(rdoDefaultFolders.olFolderSentMail);
RDOMail msg = folder.Items.Add("IPM.Note");
msg.Sent = true;
msg.Subject = String.Format("Test sent message: {0}", DateTime.Now);
RDORecipient recipient = msg.Recipients.Add("test@hotmail.com");
recipient.Resolve(false, null);
msg.Sender = session.CurrentUser;
msg.SentOn = Convert.ToDateTime("2007/09/10",
System.Globalization.CultureInfo.CurrentCulture);
msg.Body = "Test message body";
msg.Save();
==============================================

Thanks,
MA
Dmitry Streblechenko - 29 Oct 2007 17:57 GMT
Creation (as well as last modification) time is a read-only property; the
store provider sets is automatically when appropriate.

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

> Hi,
>
[quoted text clipped - 20 lines]
> Thanks,
> MA
MA - 30 Oct 2007 01:37 GMT
Thanks for the clarification.

It will look odd for the reconstitute message where the received or
the sent date is earlier then the creation date. Anyway, the
limitation is not the show stopper so I can move forward in other area
unless you suggest any other work-around approach.

Regards,
MA
MA - 30 Oct 2007 09:52 GMT
Thanks for the clarification.

Would be nice if I could modify the Creation Time as the reconstitute
message's received or sent date will be earlier then the creation
date.

Regards,
MA
Dmitry Streblechenko - 30 Oct 2007 18:31 GMT
And think about all the wonderful possibilities that would give a regular
Joe at work: "What report? What do you mean you sent an e-mail last month?
I've only received it this morning - just look at the message in my Inbox!".

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

> Thanks for the clarification.
>
[quoted text clipped - 4 lines]
> Regards,
> MA
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.