Skip Menu |

This queue is for tickets about the Mail-Box CPAN distribution.

Report information
The Basics
Id: 14609
Status: resolved
Priority: 0/
Queue: Mail-Box

People
Owner: Nobody in particular
Requestors: jpritikin@pobox.com (no email address)
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.061
Fixed in: (no value)



Subject: an empty maildir is deleted
If I delete all the email in a Maildir then the Maildir itself is deleted. To receive mail again, I have to run maildirmake. This seems wrong. Deleting mail and deleting the maildir should be separate operations.
[JPRIT - Fri Sep 16 03:10:41 2005]: Show quoted text
> If I delete all the email in a Maildir then the Maildir itself is > deleted. To receive mail again, I have to run maildirmake. This > seems wrong. Deleting mail and deleting the maildir should be > separate operations.
These are separate operations. The folder open (either via $msg->open or $folder->new) has an option 'remove_when_empty', which default to 'true'. The reason behind this, is that in most cases the first write to a folder will create it... so the last remove should clean-up. You do not have to run maildirmake anyway: $mgr->open(create => 1, type => maildir);
From: jpritikin [...] pobox.com
[MARKOV - Fri Sep 23 08:15:02 2005]: Show quoted text
> These are separate operations. The folder open (either via $msg->open > or $folder->new) has an option 'remove_when_empty', which default to > 'true'.
This option is undocumented in the version I have installed. Please document it! Show quoted text
> The reason behind this, is that in most cases the first write > to a folder will create it... so the last remove should clean-up.
Sure, that makes sense if you are doing regression testing but if you are waiting for delivery from qmail (like I am) then qmail requires an already created maildir.
[guest - Sun Sep 25 03:50:45 2005]: Show quoted text
> [MARKOV - Fri Sep 23 08:15:02 2005]:
> > These are separate operations. The folder open (either via $msg-
> >open
> > or $folder->new) has an option 'remove_when_empty', which default to > > 'true'.
> > This option is undocumented in the version I have installed. Please > document it!
No, this option is documented already since the first release. The following link is valid until the next release of MailBox: http://perl.overmeer.net/mailbox/html/jump.cgi?Mail::Box&1118 Show quoted text
> > The reason behind this, is that in most cases the first write > > to a folder will create it... so the last remove should clean-up.
> > Sure, that makes sense if you are doing regression testing but if you > are waiting for delivery from qmail (like I am) then qmail requires an > already created maildir.
For some applications it is very useful, for other it is a hassle. At the end, I have to pick a default. As result, some people complain. Changing defaults is a very very bad idea for backwards compatibility.