On Sat, Mar 24, 2001 at 12:14:55AM -0800, Gary Johnson wrote:
> On Fri, Mar 23, 2001 at 05:56:41PM -0700, Duke Normandin wrote:
> > I have the following that doesn't work:
> > 
> > folder-hook "IN.mutt" 'save-hook * =mutt'
> > 
> > When I'm reading "IN.mutt" and go to save a message, "IN.mutt" keeps
> > coming up as the default for that folder. Any ideas? Tia..
> 
> I see a couple of problems here.  The first is that '*' in a pattern
> means to match the preceding item zero or more times.  If you want to
> match everything, use '.' or '~A'.  Another is that since hooks
> accumulate, you are adding a save-hook to the list every time you enter
> a folder; and since mutt uses the first save-hook in its list whose
> pattern matches, a save-hook whose pattern matches everything will stop
> mutt from finding any subsequent save-hooks.
> 
> So I think this might work, but I haven't tried it:
> 
>     folder-hook "IN.mutt" 'unhook save-hook; save-hook ~A =mutt'

Seems so obvious that it ticks me off that I wasn't able to clue-in while
reading the Mutt Manual ;,) After my post (above), I did find the stuff
about '*' vs '.' while searching the Mutt list archives -- but never
stumbled on 'unhook'. Thanks!

BTW -- I appreciate the way you respond to e-mail, i.e. your text "follows"
the quoted portions. So many people don't know, or don't care!
-- 
-duke
Calgary, Alberta, Canada


Reply via email to