NikhilMIT2013 / java-libpst

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

How to get category from message or item? #44

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
By default items may be assigned to color categories.

Regards,
Maxim

Original issue reported on code.google.com by justpdat...@gmail.com on 5 Jul 2011 at 8:40

GoogleCodeExporter commented 8 years ago
Hi Maxim,

I've added some additional code to parse out these colour categories (committed 
to SVN).  Please have a look over it and let me know if you run into any 
problems.

Thanks,

Richard

Original comment by rjohnson...@gmail.com on 17 Jul 2011 at 5:11

GoogleCodeExporter commented 8 years ago
I marked all messages as red or red+green category.
Ones this.items.containsKey(0x8016) is true, but (int)item.data[0] returns 0.
In all other cases this.items.containsKey(0x8016) is false.
The PST database is attached.

if (this.items.containsKey(0x8016)) {
try {
PSTTableBCItem item = this.items.get(0x8016);
//PSTObject.printHexFormatted(item.data, true);
int categoryCount = (int)item.data[0];

Original comment by justpdat...@gmail.com on 28 Jul 2011 at 12:54

Attachments:

GoogleCodeExporter commented 8 years ago
This is still broken.

Original comment by martin.c...@gmail.com on 13 Aug 2012 at 8:46