Hi,

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.

Regards,
du yang

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.
> 

-- 
oooO:::::::::
(..):::::::::
:\.(:::Oooo::
::\_)::(..)::
:::::::)./:::
::::::(_/::::

Reply via email to