Subject: Is there a way to set Pine 3.95 to run my perl program for my signature?

From: "M. Wick" <[email-masked]>
Date: Mon, 10 Mar 1997 10:40:40 -0600

I have a randomizer written in perl to pick a random signature file
and print it to the screen.  Is there a way I could set the "Signature
file" in the Setup/Config for Pine to run this program and save the
output to the signature of the Composed mail message?

---

From: Rudolf Kompf <[email-masked]>
Date: Tue, 11 Mar 1997 08:47:01 +0100 (MET)

On Mon, 10 Mar 1997, M. Wick wrote:

-> I have a randomizer written in perl to pick a random signature file
-> and print it to the screen.  Is there a way I could set the "Signature
-> file" in the Setup/Config for Pine to run this program and save the
-> output to the signature of the Composed mail message?
-> 
You can configure your needs. Type 'S','C' in the main screen and see HELP
on items 'sending-filters' and 'compose-send-offers-first-filter'.
Sending filters are commands, e.g. your randomizer. 

sending-filters=~/bin/randomizer  _TMPFILE_  _RESULTFILE_

Hope, this could help.

-----------------------------------------------------------------------
Rudolf Kompf                     | E-mail: [email-masked]

---

From: [email-masked] (Jie Yuan)
Date: 10 Mar 1997 18:52:12 GMT

In article <[email-masked]>,
> output to the signature of the Composed mail message?

How about:

alias pine "autosig.pl; pine"

where autosig.pl is a Perl script that copies a file randomly from a 
number of candidate files to .sig4pine, and a setting in Pine to use
.sig4pine as the signature file?  This should work if you need to 
change the signature file once per Pine session.

Another way would be to use a Perl script as a sending-filter in Pine
and in this script, you append a file from a number of candidates at
the end of the email message.

I have not done either script, but I think they should work.

Just my 2c.

Jie
-- 
-- Jie Yuan, PhD - U. of Cincinnati - Dept. of Pharmacology & C.B. --
== POBox 670575, Cin., OH 45267-0575 = 513-558-2352 = x-1169 (fax) ==
== www.uc.edu/~yuanj = [email-masked] = using Knews (Irix5.3)     ==
== PGP key: finger -l [email-masked]                      ==