On Sun, Mar 27, 2016 at 09:05:17PM +1100, Erik Christiansen wrote:
> On 26.03.16 15:10, Jon LaBadie wrote:
> > I can see what you both are referring to.  There are big differences
> > between 'c' and 'y' for my work style.  First, 'y' shows the files
> > defined by the "mailboxes" parameter, the ones I'm looking for.  In
> > contrast, 'c' shows the files defined by the "folder" parameter which
> > in my case is not the receiving mailboxes, but the previously saved
> > mail in ~/Mail (about 800 files). 
> 
> That's not what happens here, I hit 'c' and mutt immediately offers the
> mailbox with new mail which appears highest in the (one or more)
> "mailboxes" lines in my .muttrc. I.e. it not only serves as a serialised
> version of the 'y' list, restricted to those with new mail (your
> specified use-case),

No, I specifically asked about non-empty files,
not ones containing new mail.

> but also prioritises the list in the order given in
> the "mailboxes" parameter. (Bonus points for that!)
> 
...
> 
> If another delivery mailbox appears earlier in "mailboxes", and has
> mail, it'll take precedence. If no mailbox is proffered, then there is
> no new mail. (As '.' would then confirm.)
> 
> Are you hitting '?' to go to the 800 file list?

Im the earlier paragraph you quoted yes, I was refering to the
indexes generated by the 'y' command immediately or the 'c'
command after '?'.

Apologies for not recognizing that the files in the mailboxes 
list containing new mail were shown in the 'c' prompt.  The
earliest one in the list contains copies of my wife's mail
which I don't normally read and so skip quickly to the '?'.
(But it is nice to be able to more safely examine her suspicious
mail in mutt rather than her opening them in outlook)
> 
> > Another difference, 'y' immediately goes to the index where 'c' goes
> > to a prompt on the status line with a suggested path.  That is where
> > the '-' and up/down arrows can be used or a '?' entered to get to the
> > index.
> 
> Used with a "mailboxes" parameter, 'c' automates the use-case you're
> trying to achieve manually. (And very usefully adds priority)
> 
> > All useful learning thank you.  But I'll ask my original query again.
> > 
> > Is there a way to have the index shown by the 'y' command limited to
> > those files that are NOT empty?
> 
> Not empty, or not containing new mail?

Not empty
...
> If the use-case _must_ be "NOT empty", then just use the mailbox file
> format, rather than maildir. IIRC, a mailbox file from which all mails
> have been deleted, is also deleted. A non-exsistent file can hardly be
> listed by 'y'.

I read some mailboxes not "owned" by my login account.  While I haven't
checked in quite some time, in the past I found that when the mailboxes
are automatically created the permissions don't allow me full access.
Thus I set them manually to <Owner>/<mailgroup>/world as 660 and leave
them in place when empty.

Jon
-- 
Jon H. LaBadie                 [email protected]
 11226 South Shore Rd.          (703) 787-0688 (H)
 Reston, VA  20190              (703) 935-6720 (C)

Reply via email to