문제

I am using EWS Java API to read Outlook inbox. The inbox can contain contacts items and calendar items.

I want to retrieve only the email messages, how to do that?

도움이 되었습니까?

해결책

This can be done by checking on the item type as follows:

if(myItem.getItemClass().equals("IPM.Note")){
   // this is an email
}

all item types can be found here:

http://msdn.microsoft.com/en-us/library/office/bb176446(v=office.12).aspx

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top