NikhilMIT2013 / java-libpst

Automatically exported from code.google.com/p/java-libpst
0 stars 0 forks source link

Distribution List - Found possible bug or solution? #65

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I am a Java, c# dev. I noticed in your JAVA PST project that you are trying to 
get member list from a DistList contact group.

I debugged your code for several days, and discovered something that might be 
usefull in helping you correct the problem. If i have create a Distlist Group 
in Outlook with 6 members, the code works fine, and all members are displayed, 
but if you create a distlist with 7 members or more the item.data comes empty 
and throws exception.

I called the function with the 0x8054 address according to microsoft docs:

PSTTableBCItem item = this.items[pstFile.getNameToIdMapItem(0x8054, 
PSTFile.PSETID_Address)];

Strangely the first distlist i created could display more than 7, it had 10 
members, from the second distlist beyond, starting from the seventh member the 
item.data appears empty. But if i delete some of the members in the second 
distlist,leaving only 6 members, it displays the 6 members fine again.

It also happened to another pst where all groups had 7 or more members.

the item index in this case was 62 in both cases.

Perhaps a problem in btree search? Or a problem when adding items to the 
TableBC? Could not discover.

Thank You.

Peter.

Original issue reported on code.google.com by pjosefer...@googlemail.com on 15 Apr 2013 at 8:01