Mbox File and JTree Problem.
I have a question,
I have an mbox email file that contains a number of emails along with all its info, ie header, attachments etc.
Now i am developing a project to forensically analyse emails.
My questions is, how would i go about scanning the mbox file and extracting the following information for each email,
eg: Deleivered To info
The subject line.
I want to place this into a JTree to display in an Internal Frame. I would like the delivered to to be the parent of root and the subject line to be its child. also if there are several delivered to that are the same i would like the subject line to appear in the one delivered to so as to avoid duplicates. Essentially a hierarchical structure like a file structure except for emails.
I have tried a few approaches but cannot get a good implementation.
What data strucuture would be most efficient in this situation. I have up to this point being using arrayLists and JTrees. :)