* Cliff Sarginson ([EMAIL PROTECTED]) [011021 22:41]:
> Hello,
> I asked about this problem some time ago, but I will
> dare to ask it again, since it still frustrates me,
> and I still have no answer.
> I have a few different signatures, if I am sending to
> a Dutch address I use a Dutch one, otherwise an English
> one. But for certain people (like my son) I try to use
> a less formal one. The relevant rules look as follows:
>
> send-hook . 'set signature="~/Mutt/.signature"'
> send-hook "simono@zonnet\.nl" 'set signature="~/Mutt/.signature.simon"'
> send-hook "\.nl" 'set signature="~/Mutt/.signature.nl"'
>
> Now it is my understanding that the first hook that matches
> should be the one used. So if I send to simono, it should use
> the signature for that. However simono's address has .nl in
> it's domain part and mutt always uses this signature instead
> of the one for "simono".
Well, I suppose that you're missing that simono's address also matches
".", no? So, clearly, it can't be just using the first one that matches.
It would seem that it's using the last one that matches (which is why
everyone's .muttrc has the "." send-hook listed _first_).
Try reordering them to this:
send-hook . 'set signature="~/Mutt/.signature"'
send-hook "\.nl" 'set signature="~/Mutt/.signature.nl"'
send-hook "simono@zonnet\.nl" 'set signature="~/Mutt/.signature.simon"'
And see if that helps. I haven't looked at the source or even the docs;
I'm just going by deduction on this one. I Hope it works.
good times,
--
Vineet http://www.anti-dmca.org
Unauthorized use of this .sig may constitute violation of US law.
echo Qba\'g gernq ba zr\! |tr 'a-zA-Z' 'n-za-mN-ZA-M'
PGP signature