🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #259902

Re: [slrn] Modify signature based on newsgroup

#259902
From: Adam Funk
Date: Fri, 08 Jan 2016 17:04
42 lines
2158 bytes
On 2016-01-08, Lewis wrote:

> I have a script that uses fortune to generate a .signature file, and
> that gets included with my posts (as below) as well as attached to my
> emails and such. the script is run outside of slrn (vi cron).
>
> Would it be possible to do something like the following:
>
> if posting to newsgroup [alt.foo]
>    append .foo_signature
>    append .signature
> else if posting to [alt.bar.bork.bork.bork]
>    append .bork_sig
>    append .signature
> else
>    append .signature

The identity.sl stuff lets you do that, although it's a bit ugly
compared with your pseudocode; you put the following in '~/.slrnrc':

interpret ".slrn/identity.sl"
interpret ".slrn/my_identities.sl"

& stuff like the following in the 'my_identities.sl' file:

identity->add_new("alt", "^alt\.");
identity->set_signature("alt", ".slrn/sigs/alt.sig");

identity->clone("alt", "comp");
identity->set_regexp("comp", "^comp\.");
identity->set_signature("comp", ".slrn/sigs/comp.sig");
....


You can also use it to use different From headers in different
hierarchies.  This is old stuff, & if anyone has a more elegant way to
do it, I'd like to know too.


-- 
If hard data were the filtering criterion you could fit the entire
contents of the Internet on a floppy disk.         --- Cecil Adams
Technical Details
Message-ID: <jp65mcxebi.ln2@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.(126883).mbox.7z!not-for-mail
References: <slrnn8vlkv.1uv8.g.kreme@amelia.local>

Show Full Headers
Complete Article Headers
Message-ID: <jp65mcxebi.ln2@news.ducksburg.com>
Subject: Re: [slrn] Modify signature based on newsgroup
Date: Fri, 08 Jan 2016 17:04:19 +0000
From: Adam Funk <a24061@ducksburg.com>
References: <slrnn8vlkv.1uv8.g.kreme@amelia.local>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
Newsgroups: news.software.readers
Organization: $CABAL
Lines: 42
X-Trace: individual.net BpwtqPeIHVfAKrn4lTPBpgtsPSTYk9+OJxXzYwz+wCT2ffOV3s
X-Orig-Path: news.ducksburg.com!not-for-mail
Cancel-Lock: sha1:KPfbC+MGhdX/nBHtUDLFWkX69y8=
User-Agent: slrn/pre1.0.3-10 (Linux)
X-Received-Body-CRC: 2053453062
X-Received-Bytes: 2013