[ Nicolas KOWALSKI wrote on Wed 12.Sep'12 at 13:46:21 +0200 ]
> On Wed, Sep 12, 2012 at 01:26:31PM +0200, Didier COURTAUD wrote:
> > I would want to clear automatically the N flags of all the messages
> > of a given mailbox.
>
> I use these two macros, binded to ESC-c:
>
> #
> # Catchup (index,pager)
> #
> macro index \ec
> "<tag-pattern>~N<enter><tag-prefix-cond><clear-flag>N<untag-pattern>.*<enter><end-cond>"
> macro pager \ec "<exit>\ec"
This should do what you need:
macro index R '<tag-pattern>~N<enter><tag-prefix><clear-flag>n'
Of course you can bind the macro to which ever key you prefer, doesn't have to
be R. This particular example came from Rado S' muttrc example/configuration
which is linked on the Mutt Wiki. There are a number of other examples on that
site if you would like to have a look.