#!/bin/sh # # @(#)addsig 1.2 of 92/09/10 # # addsig: add a users signature file to the end of a message. This is # an "editor" to be used from the whatnow prompt in MH. # # Subject: Re: Anonymous ftp archive of MH scripts and files # Date: Thu, 10 Sep 92 22:12:50 -0400 # From: "David J. Fiander" # # Here is the signature appending "editor" for which I appear in the # FAQ. if [ -f `mhpath +`/Signature ] then sigfile=`mhpath +`/Signature elif [ -f "$HOME/.signature" ] then sigfile="$HOME/.signature" elif [ -f "$HOME/.sig" ] then sigfile="$HOME/.sig" else echo "No Signature file exists!" >&2 exit 1 fi echo '\n--' | cat - $sigfile >>$1 exit 0