Hello Vijay,
With Outlook 2007 I can do this (didn't check on 2003):
$olFolderInbox = 6
$outlook = new-object -com outlook.application
$ns = $outlook.GetNameSpace("MAPI")
$inbox = $ns.GetDefaultFolder($olFolderInbox)
# print messages subject and entryid
#$inbox.items | fl subject,EntryID
To get (display) a specific message, for example the first item in inbox:
$i = $inbox.items.getFirst()
$ns.GetItemFromID($i.entryId).display()
---
Shay Levy
Windows PowerShell MVP
http://blogs.microsoft.co.il/blogs/ScriptFanatic
PowerShell Toolbar: http://tinyurl.com/PSToolbar
V> any suggestions on how I should progress?
V> regards
V> Vijay
V> On Jan 19, 1:13 pm, vijay <jahagirdar...@xxxxxx> wrote:
>> Hi,
>> I would like to bookmark specific emails send the list of bookmarks
>> to
>> a different application where it will be hyperlinked to the original
>> mail so that clicking on the hyperlink will open the corresponding
>> mail in outlook.
>> I would have expected the task to be that of retriving the message-ID
>> from the mail header (A function equivalent to "String
>> msgID=outlook.eMail.getMessageID" ) and later displaying the email
>> using a function equivalent to "outlook.eMail.openEmailByMessageID
>> ('ID')"
>>
>> On searching this forum the only thread I have found so far is
>>
>> http://groups.google.com/group/micro....powershell/br
>> ...
>>
>> Which provides a non-unique way of performing this operation based on
>> subject String.
>>
>> Are there function equivalent to the two functions listed by me? What
>> is the closest approximation that I can use to get the desired
>> behavior?
>> regards
>> Vijay


