![]() |
| 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. |
|
|||||||
| Tags: change, creationtime, message, redemption |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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.olFolde rSentMail); RDOMail msg = folder.Items.Add("IPM.Note"); msg.Sent = true; msg.Subject = String.Format("Test sent message: {0}", DateTime.Now); RDORecipient recipient = "); 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 |
| Ads |
|
#2
|
|||
|
|||
|
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 "MA" wrote in message ps.com... 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.olFolde rSentMail); RDOMail msg = folder.Items.Add("IPM.Note"); msg.Sent = true; msg.Subject = String.Format("Test sent message: {0}", DateTime.Now); RDORecipient recipient = "); 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 |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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 |
|
#5
|
|||
|
|||
|
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 "MA" wrote in message ups.com... 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 |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Macro To Forward Mail Without Security Message (Redemption) | Daniel.Peaper@gmail.com | Outlook and VBA | 11 | October 31st 07 09:27 PM |
| OoO message does not change | Patrick W. | Outlook - Calandaring | 0 | October 23rd 07 11:58 AM |
| Redemption CopyTo(CDO.Message) | charles.lanteigne@gmail.com | Add-ins for Outlook | 1 | September 20th 07 11:43 PM |
| Change Colour of my Message | Sajid | Outlook - General Queries | 2 | August 29th 07 02:52 PM |
| Created field (CreationTime Property) changed after migration | Jonas Wallin | Outlook - Using Contacts | 0 | July 4th 06 02:34 PM |