🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Joshua Hosseinoff Fri, 06 Nov 1992 00:15
Appending .sig to outgoing email automatically
#2161
Author: Joshua Hosseinoff
Date: Fri, 06 Nov 1992 00:15
11 lines
918 bytes
This may sound like a naive question, but how can one get the
mailx program in the Korn Shell to automatically append
a .sig file to every outgoing message?  I know
about using ~(tilde)r .sig to include the file manually, but
is there any way that this can be made automatic when i press
^D or . on a blank line?  Do i have to add something to
my .mailrc file?  Any help would be appreciated.

Joshua Hosseinoff
jdhossei@nyx.cs.du.edu  - or hosseino@yu1.yu.edu - or eaw7100@acf.nyu.edu
Re: Appending .sig to outgoing email automatically
#2176
Author: DWT
Date: Sat, 07 Nov 1992 19:34
27 lines
1814 bytes
jdhossei@nyx.cs.du.edu (Joshua Hosseinoff) wrote in
<1992Nov6.001501.21652@mnemosyne.cs.du.edu>:

| This may sound like a naive question, but how can one get the
| mailx program in the Korn Shell to automatically append
| a .sig file to every outgoing message?  I know
| about using ~(tilde)r .sig to include the file manually, but
| is there any way that this can be made automatic when i press
| ^D or . on a blank line?  Do i have to add something to
| my .mailrc file?  Any help would be appreciated.

It can be a little easier: define the variable $sign to contain the text of
your signature [for example, sign="`cat /path/to/sigfile`" ; export sign
in your .profile or set sign = "{entire text of your signature}" in your
.mailrc].  Then ~a will append it to your outgoing letter.  It's still not
automatic, but it's an improvement over typing out the name of the signature
file, especially when it's in a different directory from the one in which you
started mailx.

Note that the sign variable must contain the text itself, not the name of a
file containing the text.  You can have a second signature available by
defining the variable Sign; you append $sign with ~a and $Sign with ~A.

It's in the manual pages.

David W. Tamkin   Box 59297   Northtown Station, Illinois  60659-0297
dattier@ddsw1.mcs.com    CompuServe: 73720,1570    MCI Mail: 426-1818
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads