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

Redemption Workaround to Get SentOn from .msg files = unexpectedresults



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old November 16th 07, 08:44 AM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 2
Default Redemption Workaround to Get SentOn from .msg files = unexpectedresults

The code below incorporates a workaround to to what the title of this
post says. The workaround is suggested in, "http://www.dimastr.com/
redemption/faq.htm#15". rMessage is always nothing after 'reopen the
same message as Redemption.MessageItem is exectuted even though it
seems to have a strEntryID. Is this more likely a problem with the
Utils object or the saved message?

Thanks

Dim strEntryID As String, Utils, rMessage, mySentOn As Date
Set Utils = CreateObject("Redemption.MAPIUtils")
....
sItem.Import fullpath, 3 'olMSG, olRFC822
and olTNEF formats are supported
' the following code added to get correct SentOn date
' http://www.dimastr.com/redemption/faq.htm#15
'MsgBox (sItem.Subject & ", " & sItem.entryID)
sItem.Save 'Save the OOM
object just to make sure EntryID is available
strEntryID = sItem.entryID 'remember the
entry id
mySentOn = #11/11/2007#
Set rMessage = Utils.GetItemFromID(strEntryID) 'reopen the
same message as Redemption.MessageItem
If Not rMessage Is Nothing Then
MsgBox (rMessage.Subject & " --- found")
'rMessage.Import fullpath, 1024
rMessage.Import fullpath, 3
rMessage.Save
mySentOn = rMessage.SentOn
Else
' always takes this path
MsgBox (sItem.Subject & " --- missing")
End If
' end of kludge
 




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
OE6 ignores 'From:' in .eml files - workaround? Tim Rude Outlook Express 5 October 21st 09 08:35 PM
error 10061 workaround CNS Outlook Express 14 June 9th 07 07:05 PM
Workaround for Contributor permission sriramna Outlook - Using Forms 1 May 11th 07 01:24 PM
Changing the name of Inbox - or helpful workaround Tempstephan Outlook - Installation 3 November 10th 06 09:26 PM
Setting Company Calendar - is this a bug or is there a workaround? Meryl Miller Outlook - Calandaring 0 April 27th 06 02:15 AM


All times are GMT +1. The time now is 11:13 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.