logo       

Re: Mail::Box stumpers: msg#00052

Subject: Re: Mail::Box stumpers
* 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




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
audio.irate.dev...    yellowdog.gener...    ietf.ips/2002-0...    xfree86.fonts/2...    busybox/2003-07...    emacs.jdee/2004...    linux.mandrake....    hardware.microc...    user-groups.lin...    science.analysi...    version-control...    db.filemaker.de...    cluster.openmos...    mail.eyebrowse....    text.xml.xerces...    kde.devel.kwrit...    finance.moneyda...    gcc.regression/...    network.routing...    os.freebsd.deve...    recreation.radi...    qnx.openqnx.dev...    python.xml/2002...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe