<<< Date Index >>>     <<< Thread Index >>>

Re: sig depending on recipient



On 18 Feb 2008 10:13 -0500, by tech@xxxxxxx (Joseph):
>>> What hook would you use to set your sig based on the initial user you
>>> have chosen? 
>> 
>> I suppose a send-hook.
> 
> I guess I was thinking a send-hook meant an action taken when the
> message was sent, but that make sense.

Since the signature is included as a part of the message body when the
message file is originally created (and passed to the editor), changing
it after that fact would be a bit difficult. I suppose you could make a
$sendmail wrapper script that checks the message sender in the headers,
locates your signature at the bottom and replaces whatever is already
there with the appropriate one, then passes the message on to the MTA.

This, of course, assumes that you are running a MTA locally as opposed
to using mutt's internal SMTP support. If you're not, maybe passing the
message through that same script as $editor as part of the compose
send-message key binding would work?

-- 
Michael Kjörling .. michael@xxxxxxxxxxx .. http://michael.kjorling.se
* ..... No bird soars too high if he soars with his own wings ..... *
* ENCRYPTED email preferred -- OpenPGP key ID: 0x(758F8749)BDE9ADA6 *
* ASCII Ribbon Campaign: Against HTML mail, proprietary attachments *

Attachment: pgpFUz7UZWDqw.pgp
Description: PGP signature