View Single Post
  #9  
Old March 13th 09, 10:19 AM posted to microsoft.public.outlook.program_addins
ryotyankou via OfficeKB.com
external usenet poster
 
Posts: 101
Default How to specify the "current entry id" to GetItemFromID?

Thank you for your help so far, i change my way to process the incoming e-
mail, use IMessage interface instead of MailItem. These are the steps:
1.Use OpenEntry open the item to get IMessage interface.
2.Use IMessage interface query IMAPIProp interface, then make operation on
the item.
It works fine, Thank you again in advance, you are great people. ^_^

Dmitry Streblechenko wrote:
The whole point of retrieving the value of the Class property is to make
sure trhat you really have a MailItem object.
Try the following script in OutlookSpy: click Application button on the
OutlookSpy toolbar, go to the Script tab, paste teh script below. Now
whenever a new message arrives, OutlookSpy will open a new IDispatch browser
where you shoudl be able to see all the object properties.

sub Application_NewMailEx(EntryIDCollection)
set Msg = Application.Session.GetItemfromID(EntryIDCollectio n)
BrowseObject(Msg)
end sub

No, i don't think so, i'm sure it is a MailItem, because it is my test
e-mail

[quoted text clipped - 17 lines]
the
_MailItemPtr even it is encrypted Mail item??


--
Message posted via http://www.officekb.com

Ads