Article View: news.software.readers
Article #48867Re: [slrn] Random sigs again
From: Remco Gerlich
Date: Thu, 27 May 1999 00:00
Date: Thu, 27 May 1999 00:00
34 lines
2076 bytes
2076 bytes
Jens Wahnes <jewa@gmx.net> wrote:
> If you change the command that is executed before calling the editor
> in such a way that it changes all signature files, this might work.
> Maybe somebody else has an easier solution for this?
I've been hacking myself now. The sig file script is called after
the editor, with the same argument ('%s') as the editor. Then it
scans the file for the Newsgroups: line.
It will then take a signature file from a list; they can have
a Perl regexp (say /^nl\./ for Dutch groups) and all the newsgroups
the post goes to have to match the regexp. If it doesn't work,
try another one (and it fails after some tries).
Also added an inline command for choosing a specific signature
file in the editor, or choosing a random one that holds a specific
text (like '&SIG "elephant"' to pick a random one with the word
elephant...)
Now, it also checks if a signature file is executable, in which
case it's executed, and the output is used as the signature (so I can
add things like amount of users right now, or the level of my
current Angband character).
This is fun :-)
It almost works. If this is interesting, I'll post it here
(or you can mail me).
(next small hack: make ispell ignore headers, especially "message-id").
--
Remco Gerlich, scarblac@pino.selwerd.cx
Technical Details
Message-ID:
<slrn7kq5ev.6m5.scarblac-spamtrap@flits104-37.flits.rug.nl>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn7knp73.1mp.scarblac-spamtrap@flits104-37.flits.rug.nl> <slrn7koerb.4i7.jewa@message-id.wahnes-world.de>Show Full Headers
Complete Article Headers
Message-ID: <slrn7kq5ev.6m5.scarblac-spamtrap@flits104-37.flits.rug.nl> Subject: Re: [slrn] Random sigs again Date: Thu, 27 May 1999 00:00:00 +0000 From: scarblac-spamtrap@pino.selwerd.cx (Remco Gerlich) References: <slrn7knp73.1mp.scarblac-spamtrap@flits104-37.flits.rug.nl> <slrn7koerb.4i7.jewa@message-id.wahnes-world.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 482662290 Organization: Rijksuniversiteit Groningen User-Agent: slrn/0.9.5.6 (UNIX) Reply-To: scarblac-rt@pino.selwerd.cx Newsgroups: news.software.readers