Unknown message types - slowdown

167 views
Skip to first unread message

Martin Clausen

unread,
Aug 7, 2012, 10:02:16 PM8/7/12
to java-libp...@googlegroups.com
I have a few pst files that contains a number of message types unknown to java-libpst. The types in question are:

"IPM.Note.Rules.OofTemplate.Microsoft"
"IPM.Note.SMIME.MultipartSigned"
"IPM.Appointment.My WebEx Integration"
"IPM.Sharing"
"REPORT.IPM.Note.NDR"

I don't mind that these types cannot be read (although it would be nice if they could), but iterating through these messages (using public PSTObject getNextChild()) is very slow. Is there a way to skip such messages entirely or another way to avoid the slowdown?

rjohnsondev

unread,
Aug 23, 2012, 6:59:15 PM8/23/12
to java-libp...@googlegroups.com
Hi Martin,

Unfortunately the message has to be read in order to determine what sort of message it is, as the identifier only indicates if the item is a folder or a message.

If the system doesn't recognise the message type it will still return a PSTMessage based on what it has read in, which does provide access methods to a bunch of information (although none of it is guaranteed to exist for that message type).

Also, I have recently removed some inefficient string concatenation in some pretty important parts of the library, so it might be a little snappier now reading through things.

I've also made a small code update that will not read in a message if the system can't identify an item as either a message or a folder, although I don't think this will help you much in this scenario.

Thanks,

Richard

Martin Clausen

unread,
Aug 24, 2012, 6:31:52 AM8/24/12
to java-libp...@googlegroups.com
Thanks for getting back on this and thanks for fixing the categories issue.

/mac
Reply all
Reply to author
Forward
0 new messages