* anthonyu@xxxxxxxxx (anthonyu@xxxxxxxxx) [030729 09:23]:
> On Tue, Jul 29, 2003 at 08:35:18AM +0200, Mark Overmeer wrote:
> > Can you give any reason not to want that behavior? The 'new'
> > directory is only the transitional phase from transport into
> > acceptance. Do you want messages to stick in between?
>
> Hmm, I don't have any convincing theory on this, but I can offer a few
> anecdotes to support my request:
Not really convincing, but I have found a better argument: Mail::Box should
by default never change a folder at open(). So: I had to make some
compatibility breaking changes :-(
In the release of later today, a new label has been added to Maildir
folders: 'accepted'.
my $f = Mail::Box::Maildir->new(...);
if( $f->message(10)->label('accepted')) # in cur
if(! $f->message(10)->label('accepted')) # in new
$f->message(10)->accept; # move to cur
$f->message(10)->label(accept => 1); # same
$f->message(10)->label(accept => 0); # back to new
$f->acceptMessages; # all at once
# option to get old behavior back
my $f = Mail::Box::Maildir->new(..., accept_new => 1);
As a said: later today in release 2.044
--
MarkOv
------------------------------------------------------------------------
drs Mark A.C.J. Overmeer MARKOV Solutions
Mark@xxxxxxxxxxxx solutions@xxxxxxxxxxxx
http://Mark.Overmeer.net http://solutions.overmeer.net
|