<<< Date Index >>>     <<< Thread Index >>>

Re: Open folder only when there in new mail



On Sun, Feb 22, 2004 at 08:13:10AM -0500, David Yitzchak Cohen wrote:
> On Sun, Feb 22, 2004 at 03:14:19AM EST, Gary Johnson wrote:
> > On 2004-02-21, romildo@xxxxxxxxxxx wrote:
> 
> > > Is it possible to have
> > > 
> > > $ mutt -f <folder>
> > > 
> > > to open <folder> only if there is new mail
> > > in it? If there is no mail in <folder>,
> > > mutt should just quit. How to get this
> > > behaviour?
> > 
> > >From the mutt(1) man page:
> > 
> >  OPTIONS
> >       ...
> > 
> >       -z   When used with -f, causes Mutt not to start if there are no
> >            messages in the mailbox.
> 
> He's looking to quit if there's no _new_ mail in the folder, unless I
> misread his OP.

David is right. If there isn't new messages in the folder, mutt
should quit immediatelly, even if the folder is not empty.

Any help?

Romildo