SUMMARY: automatic signature in mailtool?

From: Andy Sherman (andys@flatline.sbi.com)
Date: Wed Oct 21 1992 - 13:20:51 CDT


NOTE: My question was originally posted to sun-managers, but I'm
posting the summary here, where it might be of general interest.

I originally wrote to the sun-managers mailing list:

> Does anybody know of a way to coerce mailtool (under OpenWindows 3.0)
> into automatically appending a file (like your .signature) at the end
> of every outgoing message? TFM has been of no help, and neither has
> running strings on mailtool and Mail looking for suggestive stuff.

Responses (other than requests for the summary) fell into three
categories.

1) (This one I actually figured out myself about an hour after I
posted) Write a shell script wrapper around sendmail to do it and
include in your .mailrc the line:

        set sendmail=signmail

where signmail is a script like

#!/bin/sh
#
# signmail - automatically add .signature to mail and then
# exec sendmail
#
if [ -f ${HOME}/.signature ]; then
        (cat - ; echo "--" ; cat ${HOME}/.signature)|exec /usr/lib/sendmail $*
else
        exec /usr/lib/sendmail $*
fi

A side benefit of this method is that mail sent using the ASCII
interface, Mail, will also have the .signature appended.

2) This one is not automatic, but provides the user with the
capability of choosing among several alternative signatures or no
signature at all. This uses the Template feature. From the main
mailtool menu, select "Edit -> Properties". Then go to the Templates
menu and add an entry for every signature file you want included.

When composing mail, select "Include -> Template -> (sigentry)" with
the cursor at the bottom of the file.

3) This one is also not automatic. Bind your signature to a function
key by placing an entry such as this in your ~/.textswrc

F12 FILTER
cat ~/.signature

Again, you can have a repertoire of signatures bound to different
keys.

Thanks to all who replied:

baumeist@vsun04.ag01.kodak.com (Hans Baumeister)
meisner@dlrtcs.da.op.dlr.de (Robert Meisner FE)
Mr T Crummey (DIJ) <tom@sees.bangor.ac.uk>
heiser@tdw901.ed.ray.com (Bill Heiser)
RBEBB@USC.PPPL.GOV (Russ Bebb, 609 243-2351)
fred@dip1.ee.uct.ac.za (Fred Hoare)
ivan@durras.anu.edu.au (Ivan Angus - ne Dean)
Daniel Quinlan <danq@lemond.Colorado.EDU>
Sean.Welch@eng.sun.com (Sean N. Welch)
Merik Karman <merik@blackadder.dsh.oz.au>
gta!paul@uunet.UU.NET (Paul Emerson)
Matt.Cohen@chron.com (Matt Cohen)
phil@dgbt.doc.ca (Phil Blanchfield)
Peter Farmer <Peter.Farmer@cs.anu.edu.au>
Alex Sarafian <alex.sarafian@analog.com>

--
Andy Sherman
Salomon Inc  -  Unix Systems Support  -  Rutherford, NJ
(201) 896-7018  -  andys@sbi.com or asherman@sbi.com
"These opinions are mine, all *MINE*.  My employer can't have them."



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:52 CDT