Change Redemption CreationTime of the new message

M

MA

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("(e-mail address removed)");
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
 
D

Dmitry Streblechenko

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
 
M

MA

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
 
M

MA

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
 
D

Dmitry Streblechenko

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
 

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