🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.pine
Article #62

Re: Random Quotes

#62
From: Tim Haynes
Date: Wed, 31 Jan 2001 21:43
27 lines
3072 bytes
Mark A Miles <maxm@tardis.ed.ac.uk> writes:

> I would like to define an output filter in PINE that passed the e-mail
> about to be sent to some sort of shell script that would then tag on a
> randomly selected quote on to the end of the mail (hence a random quote
> in a signature). Does anybody have an idea of how I would do this?

Best bet would be to have a cron job that rotated your .sig, maybe with a
stub at the top plus quote underneath, or perl script that merged the
two... if you can cope with that rotating at a fixed frequency regardless
of your mailing rate, that might suffice.

Or you can set up a named-pipe called ~/.sig with a random-quote-generator
pushing junk in one end, so when pine reads it out t'other end, it gets a
new quote every time. (Make the random-quote-generator run out of your
shell startup script so interactive logins make it check for existence of a
listener on the fifo and establish one if need be.)

> E-mailed responses would be very much appreciated.

If you *must*...

~Tim
-- 
It's all over the front page                    |piglet@glutinous.custard.org
You give me road rage                           |http://piglet.is.dreaming.org
Racing through the best days                    |
Technical Details
Message-ID: <86k87b8kjy.fsf@potato.vegetable.org.uk>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.stanford.edu!news.kjsl.com!news.gradwell.net!potato.vegetable.org.uk!spodzone!not-for-mail
References: <Pine.GSO.4.21.0101311925050.5147-100000@omega.tardis.ed.ac.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d8ad,3a7c6b247d8c6b15
X-Google-Attributes: gid10d8ad,public
X-Google-Thread: 1107b1,3a7c6b247d8c6b15
X-Google-Attributes: gid1107b1,public
X-Google-Thread: 102562,3a7c6b247d8c6b15
X-Google-Attributes: gid102562,public
X-Google-Thread: 106cc5,3a7c6b247d8c6b15
X-Google-Attributes: gid106cc5,public
X-Google-ArrivalTime: 2001-01-31 13:45:17 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.stanford.edu!news.kjsl.com!news.gradwell.net!potato.vegetable.org.uk!spodzone!not-for-mail
From: Tim Haynes <piglet@glutinous.custard.org>
Newsgroups: comp.mail.pine,uk.comp.os.linux,eduni.dcs.linux,ed.linux
Subject: Re: Random Quotes
Date: 31 Jan 2001 21:43:13 +0000
Organization: What's Organization?
Lines: 27
Message-ID: <86k87b8kjy.fsf@potato.vegetable.org.uk>
References: <Pine.GSO.4.21.0101311925050.5147-100000@omega.tardis.ed.ac.uk>
Reply-To: Tim Haynes <piglet@glutinous.custard.org>
NNTP-Posting-Host: potato.vegetable.org.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: purple.gradwell.net 980977518 14131 195.149.39.120 (31 Jan 2001 21:45:18 GMT)
X-Complaints-To: abuse@gradwell.net
NNTP-Posting-Date: Wed, 31 Jan 2001 21:45:18 +0000 (UTC)
Cc: Mark A Miles <maxm@tardis.ed.ac.uk>
X-Spook: Soviet militia assassination Bosnia Paula Corbin Jones FBI South Africa DES
X-Anti-Echelon: Delta Force supercomputer COSCO arrangements Honduras smuggle class struggle North Korea
X-Face: #VSW`$W9VSODCMa|VI.*1#90p<]FLnir4eWO`ghu'4b:gu68ck)`W<%[7ICq;z:)zfCNK{" _EUd/*pI~zb6cF-Gwd|).]EDMyx9!"_a)oyL6+<+F5u!N8%fBkn'}Ahx84(qUmtPr[/~:<8X+ZA%fU }n\aBfWy/pD04j0e6,%[yB(ZUE0Sd\9D<SNb!*QRRB#wZBiz(83OQUt}$J5H4~m)_QTUXTBDKa/
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Capitol Reef)