On Thu, 18 Dec 2003, Lars Hallberg wrote: > Anyway, I have a 'kill' option that removes the mailbox if it is empty after > the mail in it has been resorted. But if it contains a pseudo messages, the > removal of the folder fail becose it's not empty - but it is exept for the > pseudo messages.
Don't use "filesize = 0" as the test. Use "stream->nmsgs = 0" (from a c-client stream open on the mailbox) instead. mbx format also has a non-empty file when it is empty of messages. -- Mark -- http://staff.washington.edu/mrc Science does not emerge from voting, party politics, or public debate. Si vis pacem, para bellum.
