Article View: comp.mail.pine
Article #65Re: Random Quotes
From: Stephen Kitt
Date: Fri, 02 Feb 2001 00:05
Date: Fri, 02 Feb 2001 00:05
28 lines
2651 bytes
2651 bytes
On Wed, 31 Jan 2001 19:26:36 +0000, Mark A Miles <maxm@tardis.ed.ac.uk> wrote:
>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? E-mailed
>responses would be very much appreciated.
There's a better solution - signify is a Perl script which takes a signature
description file (~/.signify) and opens a FIFO on ~/.signature. Then every
time a program reads .signature it produces a signature following the rules
in .signify, which allows stuff like random quotes with different
probabilities etc. Thus the signature below is defined as three columns, one
aligned left with fixed content (the figlet logo), one centred with fixed
content (name, email, URL) and one aligned right with randomly chosen
content (the quote); the whole thing always takes up 76 characters in width
(hence the extra spaces at the start).
The only source I'm aware of for signify is the Debian project - look in the
Packages section of http://www.debian.org/ for signify, there will be a
source package. I've got it on Tardis but I can't remember whether it's in
my home directory or properly installed...
Stephen
--
__| | /_ ) Stephen 'SK�' Kitt All my life I wanted to be some-
\__ \ . < __| steve@sk2.org one; I guess I should have speci-
____/_|\_\ http://www.sk2.org fied the species. -- A. Archibald
Technical Details
Message-ID:
<23a6.3a79f9cf.dcdc3@heffalump>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!grolier!btnet-peer0!btnet-feed5!btnet!mendelevium.btinternet.com!heffalump!steveReferences:
<Pine.GSO.4.21.0101311925050.5147-100000@omega.tardis.ed.ac.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10d8ad,3a7c6b247d8c6b15 X-Google-Attributes: gid10d8ad,public X-Google-Thread: 106cc5,3a7c6b247d8c6b15 X-Google-Attributes: gid106cc5,public X-Google-Thread: 1107b1,3a7c6b247d8c6b15 X-Google-Attributes: gid1107b1,public X-Google-Thread: 102562,3a7c6b247d8c6b15 X-Google-Attributes: gid102562,public X-Google-ArrivalTime: 2001-02-02 13:36:06 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!grolier!btnet-peer0!btnet-feed5!btnet!mendelevium.btinternet.com!heffalump!steve From: steve@sk2.org (Stephen Kitt) Newsgroups: comp.mail.pine,uk.comp.os.linux,eduni.dcs.linux,ed.linux Subject: Re: Random Quotes Date: Fri, 02 Feb 2001 00:05:35 GMT Organization: BT Internet Lines: 28 Message-ID: <23a6.3a79f9cf.dcdc3@heffalump> References: <Pine.GSO.4.21.0101311925050.5147-100000@omega.tardis.ed.ac.uk> NNTP-Posting-Host: host62-7-85-230.btinternet.com Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit User-Agent: slrn/0.9.6.3 (Linux)