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 that 
> makes sure that it doesn't match something.
> 
>       send-hook !~t user@domain "my_hdr From: address C"
> 
> then another send-hook
>       send-hook ~t user@domain "my_hdr From: address whatever"
> 
> You could embed these send-hooks into a folder-hooks for the 
> appropriate folder, and then it should set up dynamically as you have
> covered the cases that you mention later in your email.

Ah! Right, so, I source my send-hooks not from my main muttrc, but from
my folder-hook sections. Then, I can have a default send-hook based on
folder, and overrides... sounds perfect.

I'll give it a shot. Thanks much!

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