I've run into problem where I've got folder-hooks & send-hooks, but, I
can't make them play nicely together.

In my main muttrc, I've got:

source ~/.mutt/default-hooks.muttrc
source ~/.mutt/folder-hooks.muttrc
source ~/.mutt/send-hooks.muttrc

"default-hooks.muttrc" resets headers, From: line, and signature to
defaults. Folder hooks, then, override the defaults on a per-folder
basis (I use some mailing lists from a particular From: or with a
particular sig)... send-hooks are meant to override the folder hook
defaults for particular addresses (For instance, everyone in my
company's domain gets my company's signature, despite the folder I'm in)

However, the default-hooks.muttrc does not properly reset my signature
(nor message headers) to the default...

If I use only folder-hooks, I put the content of default-hooks.muttrc
into a file called ~/.mutt/hooks/defaults.global which gets sourced
before every other folder hook... this works as expected...

However, this falls apart if I go to use a send-hook, in which case, the
send hook's last defaults get used the next time around. It's very
frustrating. If I reset the defaults for both folder hooks *and* send
hooks, no hooks can be used at all, of course...

So what's a proper order of precedence for something like this?

Erik.

-- 
"...ironically, perhaps, the best organised dissenters in the world today
are anarchists, who are busily undermining capitalism while the rest of
the left is still trying to form committees." Jeremy Hardy, The Guardian.

Reply via email to