<<< Date Index >>>     <<< Thread Index >>>

Re: Mutt 1.5.8i uses wrong folder hook



On Mon, Mar 07, 2005 at 11:42:45PM +0100, Dani Belz wrote:
 
> it happened several times now that mutt uses the wrong folder hook
> :-( If I was in the folder holding the mutt users list and then
> change back to my inbox and reply to a mail there, mutt uses the
> values I have defined for the mutt folder :-( Anybody any idea
> what's wrong here? 
> 
> This is what my folder hook looks like:
> 
> folder-hook {localhost}INBOX.Lists.mutt my_hdr From: Dani Belz
> <mutt@xxxxxxxxx>
> folder-hook {localhost}INBOX.Lists.mutt my_hdr To:
> mutt-users@xxxxxxxx
> folder-hook {localhost}INBOX.Lists.mutt fcc-hook .
> {localhost}INBOX.Lists.mutt
> 
> My inbox doesn't have any folder hook.

You need to define a default folder-hook. 
e.g., (untested):

folder-hook . 'unmy_hdr From:' 

or
folder-hook . 'my_hdr From: [blah]'

You might also want to use send-hooks instead of folder-hooks for this.