Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - How to retireve "PR_SEARCH_KEY" property of a mail in vbscript formailbox using Outlook MAPI?

Reply
 
Old 08-06-2009   #1 (permalink)
Jyoti Sharma


 
 

How to retireve "PR_SEARCH_KEY" property of a mail in vbscript formailbox using Outlook MAPI?

Can someone guide me here:

I am writing a vbscript file to retrieve properties of mails in mailbox. I
want to know what key is used to get the PR_SEARCH_KEY property. I am new.
Can someone direct me to newsgroup/forum/documentation more specific to my
work? Any help would be highly apreciated.



REM
REM

Set objSession = CreateObject("Outlook.Application")

For i = objFolders.Count To 1 Step -1
Set objFolder = objFolders.Item
If Trim(UCase(objFolder.Name)) <> "PUBLIC FOLDERS" Then
set objRootFolder = objFolder
End if
Next

Set objFoldersColl = objRootFolder.Folders


for each oRoot in objFoldersColl
For each objMessage in oRoot.Items
writelog(objMessage.ENTRYID) REM for getting PR_ENTRYID property
of the mail
REM
REM What do I write here? objMessage.??
REM
Next
Next


REM
REM

Regards,
Lima

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Cannot send email which show some error about "MAPI" Vista mail
In Outlook Express, how can I define the "columns" other than the "InBox" setting Live Mail
Read "userAccountControl" property to determine if account isdisabled? PowerShell
"Property Loss" Message copying images Vista General
WM5 Sync with Vista "Windows Calender", "Contacts", and "Mail" Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46