On Tue, Jan 11, 2011 at 07:34:55PM +0800, du yang wrote:
>
> On Tuesday 01/11/11 18:39:29 CST, Yue Wu wrote:
> > Hi, group,
> > 
> > As the title, I want to only show the folders have new emails when in
> > folder view, how to do that?
> > 
> > I'm using a method, but don't know if there's a better or built-in
> > way: write a sh script to detect if the mail folder has files in new/,
> > if yes, then add it in mailboxes command.
> 
> In the folder view, what are displayed are the defined mailboxes, and they 
> are defined in the muttrc statically.
> 
> Mailboxes with no new mails have to be undefined if we just want to display 
> mailboxes with new mail.
> 
> Maybe using macro is the best way to implement the function. 
> But according the mutt manual, it seems there is no variable to check a 
> mailbox having new mails a not and it is had to implement control flows 
> inside macros.
> 
> Maybe it is possible to use a external program to check which mailboxes have 
> new mails, then dynamically define those mailboxes undefined others.
> 

I got it, I don't need the fancy feature to dynamically show the just
folders that have new emails, a sh script to define the mailboxes for
new email folders is enough for me, just curious if there's a better
way :)

-- 
Regards,
Yue Wu

Key Laboratory of Modern Chinese Medicines
Department of Traditional Chinese Medicine
China Pharmaceutical University
No.24, Tongjia Xiang Street, Nanjing 210009, China

Reply via email to