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'

Gary

-- 
Gary Johnson                               | Agilent Technologies
[EMAIL PROTECTED]                   | RF Communications PGU
http://www.spocom.com/users/gjohnson/mutt/ | Spokane, Washington, USA

Reply via email to