Article View: news.software.readers
Article #218397Re: [slrn ] My signature does not show
From: Adam Funk
Date: Wed, 02 Apr 2008 12:18
Date: Wed, 02 Apr 2008 12:18
46 lines
2864 bytes
2864 bytes
On 2008-04-01, Blinky the Shark wrote:
>> Hey, good stuff man. I'll have to give that a try and see if it makes
>> my life easier. In the meantime, my sig is working. I'd like to have
>> it more random than a fixed file so I was thinking about aliasing "slrn"
>> to run a shell script that would echo out something clever and random to
>> my news.signature file before calling slrn. Is there anything other
>> than "fortune" that can do this?
>
> I *think* there's some kind a slrn macro for those who want 1994-style
> "tagline rotation".
"1994-style"? What am I missing?
Anyway, here's my crude system for sig rotation (suggested
improvements are welcome).
define fudge_save_sig () {
variable tm = localtime (_time ());
set_string_variable ("save_posts",
sprintf ("/home/adam/News/sent/%d%02d%02d-%02d%02d%02d.news",
tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday,
tm.tm_hour, tm.tm_min, tm.tm_sec));
variable cmd_fp = popen("~/.slrn/sigs/generate-sig.perl", "r");
}
register_hook("post_hook", "fudge_save_sig");
register_hook("post_file_hook", "fudge_save_sig");
register_hook("reply_hook", "fudge_save_sig");
register_hook("followup_hook", "fudge_save_sig");
register_hook("forward_hook", "fudge_save_sig");
The generate-sig.perl script picks one random sig from a
"%%"-formatted file and writes it to "~/.signature".
--
Do you know what they do to book thieves up at Santa Rita?
http://www.shigabooks.com/indeces/bookhunter.html
Technical Details
Message-ID:
<d5acc5-7l5.ln1@news.ducksburg.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed-0.progon.net!progon.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<47f16fe2$0$4064$9a566e8b@news.aliant.net> <20080401103157.196@ilium.andrews-corner.org> <47f20a92$0$4059$9a566e8b@news.aliant.net> <20080401231837.163@ilium.andrews-corner.org> <47f2a1a1$0$4034$9a566e8b@news.aliant.net> <pan.2008.04.01.23.24.40.142035@thurston.blinkynet.net>Show Full Headers
Complete Article Headers
Message-ID: <d5acc5-7l5.ln1@news.ducksburg.com> Subject: Re: [slrn ] My signature does not show Date: Wed, 2 Apr 2008 13:18:21 +0100 From: Adam Funk <a24061@ducksburg.com> References: <47f16fe2$0$4064$9a566e8b@news.aliant.net> <20080401103157.196@ilium.andrews-corner.org> <47f20a92$0$4059$9a566e8b@news.aliant.net> <20080401231837.163@ilium.andrews-corner.org> <47f2a1a1$0$4034$9a566e8b@news.aliant.net> <pan.2008.04.01.23.24.40.142035@thurston.blinkynet.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed-0.progon.net!progon.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Organization: $CABAL Lines: 46 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: individual.net iKK5zxr6L3/lJeVrUs24pg0xlu5Nx5sMo4AAF+ov/OfweeQG9c X-Orig-Path: news.ducksburg.com!news Cancel-Lock: sha1:gLQcvyljtZZOUZAS8AK6D7kGYOM= sha1:dbLHdH65cLsXQTF+DlPWx4PRsXQ= User-Agent: slrn/pre0.9.9-99/mm/ao (Debian)