🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #119898

Re: slrn: is it possible to change 'identity' on a per-newsgroup basis?

#119898
From: Emmanuele Bassi
Date: Fri, 07 Feb 2003 15:08
36 lines
2548 bytes
* David Marsh <use-userid-in-sig@127.0.0.1> [2003-02-07 10:31]:

> If I want to apply an identity to numerous newsgroups in different
> hierarchies, how would I do that?

Clone the identity for every hierarchy.

#v+
% base identity
identity->add_new("my_id_hier1", "hier1.*");
% set details...

% cloned identity for hier2.*
identity->clone("my_id_hier1", "my_id_hier2");
identity->set_regexp("my_id_hier2", "hier2.*"); % mandatory

% cloned identity for hier3.*
identity->clone("my_id_hier1", "my_id_hier3");
identity->set_regexp("my_id_hier3", "hier3.*"); % mandatory
#v-

> I tried [foo.*][bar.*][*.baz.*] but that didn't seem to be the right
> thing...

When S-Lang will be shipped with the PCRE module, that John Davis has so
kindly provided, these kind of regular expression will be possible to
be parsed out (although, I would not recommend them: they are difficult
to read and/or maintain).

Bye,
 Emmanuele.

-- 
Emmanuele Bassi              [ http://digilander.iol.it/ebassi/slrn.html ]
GnuPG Key fingerprint = 4DD0 C90D 4070 F071 5738  08BD 8ECC DB8F A432 0FF4
Technical Details
Message-ID: <slrnb47458.2f3.zefram@wolverine.lohacker.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!twister1.libero.it.POSTED!not-for-mail
References: <slrnb3b4a9.19a.use-userid-in-sig@pepper.viewport.lan> <slrnb3basl.9e1.zefram@wolverine.lohacker.net> <slrnb3ddlr.2bu.use-userid-in-sig@pepper.viewport.lan> <slrnb3e9ll.6d1.zefram@wolverine.lohacker.net> <slrnb3j5m8.49c.use-userid-in-sig@pepper.viewport.lan> <slrnb472on.149.use-userid-in-sig@pepper.viewport.lan>

Show Full Headers
Complete Article Headers
Message-ID: <slrnb47458.2f3.zefram@wolverine.lohacker.net>
Subject: Re: slrn: is it possible to change 'identity' on a per-newsgroup basis?
Date: Fri, 07 Feb 2003 15:08:54 GMT
From: Emmanuele Bassi <zefram@wolverine.lohacker.home>
References: <slrnb3b4a9.19a.use-userid-in-sig@pepper.viewport.lan> <slrnb3basl.9e1.zefram@wolverine.lohacker.net> <slrnb3ddlr.2bu.use-userid-in-sig@pepper.viewport.lan> <slrnb3e9ll.6d1.zefram@wolverine.lohacker.net> <slrnb3j5m8.49c.use-userid-in-sig@pepper.viewport.lan> <slrnb472on.149.use-userid-in-sig@pepper.viewport.lan>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!twister1.libero.it.POSTED!not-for-mail
Newsgroups: news.software.readers
Lines: 35
Reply-To: Emmanuele Bassi <emmanuele.bassi@iol.it>
X-Face: &2.Q,Qgj{KA*q4G%p`*s`1f!hjGTi-9~Ju,L^d#P49tt}?jS(h@;s/K/]gc?bi-9=>%E\6#?o&[Kmng:@W+8W4y6dCuyl?L>k3i7D
User-Agent: slrn/0.9.7.4pl1-eb2 (Linux)
NNTP-Posting-Host: 151.29.199.179
X-Complaints-To: abuse@libero.it
X-Trace: twister1.libero.it 1044630534 151.29.199.179 (Fri, 07 Feb 2003 16:08:54 MET)
NNTP-Posting-Date: Fri, 07 Feb 2003 16:08:54 MET
Organization: [Infostrada]