Maildir gets wiped out

"Daniel Packer" <[email protected]> Sun, 10 Oct 2004 00:14:01 -0500 (EST)
Newsgroups gmane.comp.lang.perl.modules.mail-box
Message-ID <[email protected]>
Hi, and thanks in advance.

Whenever I do a delete on a message, or a moveMessage (perhaps any folder
modification), my entire Maildir is deleted or moved!

I'm using Mail::Box Distribution version 2.054, perl 5.6.1 on Red Hat 7.3.

For example, let's say I have two Maildirs, and I do
$manager->moveMessage($otherfolder, $msg). I end up with the entire
contents (cur/tmp/new) of the folder containing $msg inside the new/
folder of $otherfolder!

Another example is, if I do $msg->delete, the entire Maildir containing
that message (Maildir/new, Maildir/cur, Maildir/tmp - the whole thing) is
gone when it finishes.

I figure either I'm badly misusing Maildir in the first place, or I found
a version specific bug. Each time my Maildir goes missing I create a new
one with 'maildirmake Maildir' in my home directory. I then send an email
and see that it's in Maildir/new, where it should be. Can't figure out why
Mail::Box is doing this... where did I go wrong?

If upgrading the module is the answer, that's OK, but I don't have root
access just at the moment, so another approach would be most helpful.

Regards,
Daniel