* Didier COURTAUD <[email protected]> [09-12-12 08:25]:
> Thanks a lot Nicolas and Jamie !
> 
> It works with a muttrc file like this
> 
> push "<tag-pattern>.<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>"
> push quit
> 
> where mutt makes the job entirely in batch mode
> 
> Le 12.09.2012 14:18, Jamie Paul Griffin a écrit :
> >[ 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.
> >

but...  I *only* works in the startup directory.

-- 
(paka)Patrick Shanahan       Plainfield, Indiana, USA      HOG # US1244711
http://wahoo.no-ip.org        Photo Album: http://wahoo.no-ip.org/gallery2
http://en.opensuse.org                           openSUSE Community Member
Registered Linux User #207535                    @ http://linuxcounter.net

Reply via email to