Steve Carroll wrote:

> I've notices the automatic creation of a nstmp folder now and then --- 
> sometimes it's empty, sometimes it has bunches of messages in it.  The 
> last time it appeared seemed to be folllowing a crash while trying to 
> compact my inbox.

Which build are you using?  I think bienvenu fixed a crasher bug in 
folder compaction recently.

> when I restarted mozilla my inbox was EMPTY (oh no!) 
> but the nstmp folder contained those files plus some other "junk" I'd 
> deleted from the trash.

If you can reproduce this with a recent build, can you start a bug and 
assign it to bienvenu?


> Is that the purpose of the nstmp folder?  A kind of safeguard when 
> performing potentially fatal operations like compacting, deleting or 
> moving batches of files?

 From a quick glance at the code 
(http://lxr.mozilla.org/seamonkey/source/mailnews/base/src/nsMsgFolderCompactor.cpp)
it looks like we take the folder to compact, iterate over all the 
messages and create a temporary folder and temporary summary file.  when 
we are done, if everything went ok, we over-write the uncompacted 
versions of the folder and the summary file with the compact version.

-Seth


Reply via email to