[comp.mail.sendmail] How to append a .signature file to a mail ?

etxpihl@tore.ericsson.se (DEE Tomas Pihl) (05/14/91)

Hi mailers,

I'm using 'mailtool' on a Sparc 1+ with SunOS 4.1.1 installed.
My question is propably a FAQ, but...

  How do I append a .signature file to my outgoing mails ?

Is there a ENV variable that I must set or what ?

Thanks in advance..    Regards
                            Tomas
---
Tomas Pihl
Ericsson Telecom
email: etxpihl@texas.ericsson.se
---
--
Tomas Pihl           || e-mail: etxpihl@texas.ericsson.se  (UN*X)
Ericsson Telecom     || memo  : etx.etxpihl                /|
Sweden, Stockholm    || [ This is an empty row...FYI ]    / |miga

barnett@grymoire.crd.ge.com (Bruce Barnett) (05/15/91)

In article <1991May14.110742.9065@ericsson.se> etxpihl@tore.ericsson.se (DEE Tomas Pihl) writes:

>   I'm using 'mailtool' on a Sparc 1+ with SunOS 4.1.1 installed.
>   My question is propably a FAQ, but...

>     How do I append a .signature file to my outgoing mails ?

here are several methods:

Option 1) 	Function key mapping

Add the following lines to your .textswrc file:

KEY_TOP(4)	FILTER
cat $HOME/.signature

Press F4 when you want to insert your signature

Option 2) Pop-up Extras menu

Add the following line to your .text_extras_menu file:

Sign			cat $HOME/.signature

Use the pop-up Extras/Sign.

Option 3) - Using textedit accelerators

	Select the text ".signature" and press Meta-I to insert the
	file. You may want to create a file called ".s" as it's
	shorter. When the Insert window pops up, press return again

Option 4 - Automatic):

Modify your .mailrc file to say:

set sendmail=my-mailer

Where my-mailer is a variation of the script /usr/bin/fmt_mail
that appends a file to all mail messages.
Changing the line that says:


	fmt -s -72) | /usr/lib/sendmail "$@"

to

	cat - $HOME/.signature | /usr/lib/sendmail "$@"

ought to work. I haven't tried it myself.

--
Bruce G. Barnett	barnett@crdgw1.ge.com	uunet!crdgw1!barnett