Re: matching in hooks

2001-12-06 Thread Michael Tatge

Roman Neuhauser muttered:
 send-hook . 'set signature = ~/bin/signature|'
 send-hook '~e john@doe\\.com' 'set signature=FUBAR'
 
 When I start mutt with this config, and locate a mail from john doe with
 /~e john@doe\.com
 (i. e. the pattern matches), and hit r, I get the regular signature, not
 the customized one. 
 
 What ad I doing wrong?

Try ~f instead.

HTH,

Michael
-- 

PGP-Key: http://www-stud.ims.uni-stuttgart.de/~tatgeml/public.key



matching in hooks

2001-12-05 Thread Roman Neuhauser

Hi there,

I started playing with hooks, and can't get one thing to work:

Let's say I want to have a different signature when mailing/replying to
[EMAIL PROTECTED] I put this in my .muttrc:

send-hook . 'set signature = ~/bin/signature|'
send-hook '~e john@doe\\.com' 'set signature=FUBAR'

When I start mutt with this config, and locate a mail from john doe with
/~e john@doe\.com
(i. e. the pattern matches), and hit r, I get the regular signature, not
the customized one. 

What ad I doing wrong?

TIA

-- 
FreeBSD 4.4-STABLE
12:03PM up 42 days, 22:46, 13 users, load averages: 0.02, 0.06, 0.05



Re: matching in hooks

2001-12-05 Thread René Clerc

* Roman Neuhauser [EMAIL PROTECTED] [05-12-2001 12:06]:

| Hi there,
| 
| I started playing with hooks, and can't get one thing to work:
| 
| Let's say I want to have a different signature when mailing/replying to
| [EMAIL PROTECTED] I put this in my .muttrc:
| 
| send-hook . 'set signature = ~/bin/signature|'
| send-hook '~e john@doe\\.com' 'set signature=FUBAR'
| 
| When I start mutt with this config, and locate a mail from john doe with
| /~e john@doe\.com
| (i. e. the pattern matches), and hit r, I get the regular signature, not
| the customized one. 
| 
| What ad I doing wrong?

Spotted in TFM:

~e EXPR message which contains EXPR in the ``Sender'' field

In your scenario, John Doe isn't the sender, *you* are the sender.
John Doe was the sender of the mail you received from him, but since
you're replying, there is a new message, which contains John Doe as
recipient, not as sender.

You'll probably want one of these: ~C, ~c or ~t.

HTH,

-- 
René Clerc  - ([EMAIL PROTECTED])

If you want to make God laugh, tell him about your plans.
-Woody Allen



msg21074/pgp0.pgp
Description: PGP signature