Subject: Re: automatically include '--' with signature?

From: David L Miller <[email-masked]>
Date: Wed, 11 Sep 1996 15:11:22 -0700 (PDT)

On 27 Aug 1996, Georg Schwarz wrote:

> Can I configure pine to automatically include a '--' ´line before the
> signature (if there is one) short of explicitly including the '--' line
> into my signature file?`
> 

The attached script, configured as a sending-filter, will insert your
signature, preceded by a "-- " line, wherever you specify a
pre-determined token.  Here's how to use it,

1.  save the script in ~/bin/addsig (or whever you keep scripts); 
Make sure it is executable. 

2.  In the Setup/Config screen, add a sending-filter like

	sending-filters = ~/bin/addsig token

where "token" is a string that prefixes a signature, e.g. --DLM

3.  Delete the entry in "signature-file"

4.  (opional) Select the compose-send-offers-first-filter feature

5.  When you compose a message, include a line beginning with whatever
token you configured in 2.

Now your signature will be after the token.  If you don't want the
token included in the output, change the first line of the gawk script
from
			{
to
	$1 != token	{

--DLM

-- 
|\ |  |\/|  David L. Miller    [email-masked]  (206) 685-6240
|/ |_ |  |  Software Engineer, Pine Development Team   (206) 685-4045 (FAX)
University of Washington, Networks & Distributed Computing, Box 354841
4545 15th Ave NE, Seattle WA 98105, USA
#!/bin/sh
#
# 
/usr/local/bin/gawk -v token=$1 '
		{ 
		print
		}
$1 == token	{
		printf "\n-- \n"
		sig = ENVIRON["HOME"] "/.signature"
		while (getline < sig) print
		close(sig)
		}
'