Hi folks, I've been scouring the help forums and haven't come across anything on this topic.

I'm attempting to import a good size dataset (~5 GB made up of ~1000 messages with many attachments) into mbox format.  I'm running into two issues.

1. Before appending to the Inbox file, a copy of the file is created.  As the file grows, this process takes longer and longer.

2. Each copy is retained until the JVM exits, meaning that after running for a while, I have many multi-gigabyte temp files accumulating.  This I can get around this by invoking my conversion program once per incoming document.

Overall, I just want to append to the inbox file. Is there a way to prevent mstor from having to parse/copy the entire existing file each time in order to append a new message? I couldn't find any CapabilityHints that seemed to affect this.  The only place in the code I see this happening is in purge, which only seems to be called from expunge. But I don't understand why this is being called, if in fact I'm not overlooking something.

Aside from that, any tips on preventing the tmp files from accumulating? I'm pretty sure that I've closed and nulled everything that I open, but only on exit do they seem to go away.

Thanks very much!

Chris