[ILUG] Hooks In Mutt
lbedford at lbedford.org
Mon Feb 9 09:05:34 GMT 2004
On Mon, 2004-02-09 at 01:50, Conall O'Brien wrote:
> I've been messing around with Mutt Hooks in the last few weeks, since I have
> two mail email accounts, personal and work, which are stored in vhosts
> on the same physical box. The problem is, my folder-hook settings appear to
> misbehave every so often.
> My relatively simple hooks are as follows:
> # Set my defaults
> folder-hook '.*conall' 'source .mutt/profile-conall.net'
> # Reset some things if it's an infocad.ie mailbox
> folder-hook '.*infocad' "source ~/.mutt/profile-infocad.ie"
> Each of my sourced profiles are just mini muttrc files which unset all
> headers and set specific headers accordingly, From header, etc...
> I don't see anything obviously wrong, since I've a proper account on the
> server above all the vhosts and symlinks into the appropriate vhosts,
> surprisingly called conall.net and infocad.ie after their DNS, so the
> patterns should match.
well, one of the things to bear in mind is that folder-hooks only do
their work when you (are in/move to) a folder.
So if you wanted to send a mail as infocad, and you were in the
conall.net folders, it wouldn't behave quite correctly.
> Can anyone see anything blindingly obvious and wrong with my
> approach/syntax or am I going to have to define a load of send-hooks to
> make sure my desired settings are applied as I want?
You might want some send-hooks as well, to cover composing new mail in
the wrong folder.
More information about the ILUG