On Mon, Mar 22, 2010 at 10:11:52AM -0700, Michael Elkins wrote:
> On Sun, Mar 21, 2010 at 08:19:12PM -0700, Freeman wrote:
> > When I type "l" at the command prompt, I get a request for a limit pattern.
> > Then I type "~ n >1" to limit view to a score greater than 1. This works
> > precisely.
> > 
> > But no luck with a limit function in muttrc.
> > 
> > I started with variations on this  
> > 
> >  folder-hook     =.list/*'push "l ~n 1-\n"' 
> > 
> > from an otherwise informative Howto:
> > http://mail.linux.ie/pipermail/ilug/2004-October/074043.html
> > 
> > Following is closer to successful lines in my muttrc and threads on this
> > list:
> > 
> >  folder-hook     =.list/*     'push "<limit>!l ~n >1<enter>"'
> > 
> > But to no avail.  Any insight appreciated!
> 
> This seems to work:
> 

Right. The "!" seems to be wrong but irrelevant. 

Turns out another push command for the same folder was interfering. 
Combining the two push commands works well.  Hadn't seen that in the manual
but that doesn't mean it isn't there.
  
>       folder-hook . 'push "<limit>~n >1<enter>"'
> 
> Also, note that the folder pattern is a regexp, not a glob.  You can
> just use =.lists/ to match all the folders in that subdirectory.  It
> happens to work the way you wrote it because * means match the last char
> zero or more times, but it is not doing what you probably think.

Thanks. I went through my .muttrc correcting that as necessary.

Limiting is working well and I made macros for various views:

  macro index \e0 '<limit>all<enter>' 
  macro index \e3 '<limit>~n >29<enter>'
  macro index \e. '<limit>~n 30-79<enter>'

I had to add the "all" macro to the start of my "mark all read" macro or it
left hidden items.

-- 
Kind Regards,
Freeman

http://bugs.debian.org/release-critical/

Reply via email to