I am using JACOB. jar to access outlook . I am getting the count of my Inbox mails. how can I get the count of unread mail folder in outlook with JACOB. jar
Dispatch.call((Dispatch) myNamespace,"GetDefaultFolder", new Integer(6)).toDispatch();
with this code I am getting the count of the Inbox . I tried the values to 10 that is the integer value for contacts folder in outlook . can anyone help me to find the unread mail folder count in outlook.