jfreak53
jfreak53

Reputation: 2349

Mutt Send Signature Hook

I've got a send hook setup in Mutt for my signature. I usually have a few links in my sig that one customer of mine doesn't like, their email always spits it back. So to fix this I made a new signature file just for this client and setup a send hook in mutt that when it's going to this client it adds this special signature:

send-hook "~t @domain.com"  set signature=~/.mutt/branded.sig
set signature="~/.mutt/sig"

The problem now is that once I send an email to this customer then all other emails even if they go to another email address now have the new signature.

How do I tell Mutt that anything other than that email gets the regular signature?

Upvotes: 3

Views: 4482

Answers (1)

Dave
Dave

Reputation: 106

Instead of that second "set signature" line, you want to set another send-hook for "anything other than that". For example:

send-hook . set signature="~/.mutt/sig"
send-hook "~t @domain.com" set signature=~/.mutt/branded.sig

Upvotes: 9

Related Questions