On Mon, 2004-02-09 at 01:50, Conall O'Brien wrote:
> Hi,
>>> 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.
L.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!