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 » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , , ,

Change Redemption CreationTime of the new message





 
 
Thread Tools Display Modes
  #1  
Old October 29th 07, 07:20 AM posted to microsoft.public.outlook.program_vba
MA[_2_]
external usenet poster
 
Posts: 39
Default Change Redemption CreationTime of the new message

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  
Old October 29th 07, 05:57 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 1,592
Default Change Redemption CreationTime of the new message

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  
Old October 30th 07, 01:37 AM posted to microsoft.public.outlook.program_vba
MA[_2_]
external usenet poster
 
Posts: 39
Default Change Redemption CreationTime of the new message

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  
Old October 30th 07, 09:52 AM posted to microsoft.public.outlook.program_vba
MA[_2_]
external usenet poster
 
Posts: 39
Default Change Redemption CreationTime of the new message

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  
Old October 30th 07, 06:31 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 1,592
Default Change Redemption CreationTime of the new message

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

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
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


All times are GMT +1. The time now is 06:01 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Problem Mortgage - Modded Xbox - Advertising - Advertising - Loans