I'm dealing with my Outlook2010 Emails by this code
Code: Select all
#SingleInstance force
; get selected-emails in Outlook-Explorer
Selected_Emails := COMObjActive("Outlook.Application").ActiveExplorer.Selection
counter := Selected_Emails.count
; loop through Eplorer-selected-mails
loop, %counter%
{
e_item:=Selected_Emails.Item(A_Index)
; get Mapi-Mail-Properties
m_test1 := e_Item.Propertyaccessor.Getproperty("http://schemas.microsoft.com/mapi/proptag/0x10820040") ;"PR_LAST_VERB_EXECUTION_TIME"
m_test2 := e_Item.Propertyaccessor.Getproperty("http://schemas.microsoft.com/mapi/proptag/0x10810003") ;"PR_LAST_VERB_EXECUTED"
m_test3 := e_Item.Propertyaccessor.Getproperty("http://schemas.microsoft.com/mapi/proptag/0x1035001E") ;"PR_INTERNET_MESSAGE_ID"
; forwarded Mail decimal 262 -> 0x106
m_test4 := e_Item.Propertyaccessor.Getproperty("http://schemas.microsoft.com/mapi/proptag/0x10800003") ;"PR_ICON_INDEX"
; wont work, why ??
;e_Item.Propertyaccessor.SetProperty("http://schemas.microsoft.com/mapi/proptag/0x10800003") := 0x106 ;"PR_ICON_INDEX"
}
return
Help available ?
Regards
J.B.