Re: Hooks & order of precedence

2002-03-01 Thread Erik Rothwell
On Thu, Feb 28, 2002 at 08:17:37PM -0600, Knute wrote: > > What I'm trying to do is this: > > > If I'm in a folder, set my from address for the folder, *unless* I'm > > emailing to user@domain, then, use a different address. > > Ok, if I follow you up to this point, you need to use a send-hook

Re: Hooks & order of precedence

2002-02-28 Thread Knute
On Thu, 28 Feb 2002, Erik Rothwell wrote: > On Thu, Feb 28, 2002 at 10:28:49AM -0800, Gary Johnson wrote: > > On Thu, Feb 28, 2002 at 11:06:39AM -0500, Rob Reid wrote: > > > > > Maybe it could be made folder specific by tying the send-hook to an alias, or > > > even user+folder@domain, that is o

Re: Hooks & order of precedence

2002-02-28 Thread Erik Rothwell
On Thu, Feb 28, 2002 at 10:28:49AM -0800, Gary Johnson wrote: > On Thu, Feb 28, 2002 at 11:06:39AM -0500, Rob Reid wrote: > > > Maybe it could be made folder specific by tying the send-hook to an alias, or > > even user+folder@domain, that is only used when emailing user from folder. > > You can

Re: Hooks & order of precedence

2002-02-28 Thread Gary Johnson
On Thu, Feb 28, 2002 at 11:06:39AM -0500, Rob Reid wrote: > Maybe it could be made folder specific by tying the send-hook to an alias, or > even user+folder@domain, that is only used when emailing user from folder. You can have a folder-hook set a send-hook, like this: folder-hook .

Re: Hooks & order of precedence

2002-02-28 Thread Rob Reid
At 6:56 PM EST on February 27 David DeSimone sent off: > Rob Reid <[EMAIL PROTECTED]> wrote: > > > > I thought that was what . is for, matching any folder, as in: > > > > folder-hook . unset save_empty > > Maybe I should explain it a little clearer: > > Suppose you have a set of hooks like thi

Re: Hooks & order of precedence

2002-02-27 Thread David DeSimone
Rob Reid <[EMAIL PROTECTED]> wrote: > > I thought that was what . is for, matching any folder, as in: > > folder-hook . unset save_empty Maybe I should explain it a little clearer: Suppose you have a set of hooks like this: folder-hook . 'set variable=AAA' folder-hoo

Re: Hooks & order of precedence

2002-02-27 Thread Rob Reid
At 4:55 PM EST on February 27 David DeSimone sent off: > Erik Rothwell <[EMAIL PROTECTED]> wrote: > > > > However, the default-hooks.muttrc does not properly reset my signature > > (nor message headers) to the default... > > You seem to have a misunderstanding about when hooks are run. > > A fo

Re: Hooks & order of precedence

2002-02-27 Thread David DeSimone
Erik Rothwell <[EMAIL PROTECTED]> wrote: > > However, the default-hooks.muttrc does not properly reset my signature > (nor message headers) to the default... You seem to have a misunderstanding about when hooks are run. A folder-hook is only run when you change folders. Not every time you send

Re: Hooks & order of precedence

2002-02-27 Thread Marco Fioretti
Erik, I'm not sure I understood all your problem, but I have the feeling that you could find a solution in the concept of mutt profiles as explained here: http://www.acoustics.hut.fi/~mara/mutt/profiles.html Let us know. Ciao, Marco Fioretti RULE: Run Up2date

Re: Hooks & order of precedence

2002-02-27 Thread David T-G
Erik -- ...and then Erik Rothwell said... % % 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