🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #71248

Re: [slrn] per-newsgroup settings?

#71248
From: Jens Wahnes
Date: Mon, 29 Jan 2001 19:50
83 lines
3701 bytes
Mark wrote:

> I was wondering almost the same thing. I'm trying to convert from Agent to
> a linux based news reader, and slrn is my current choice. The only stumbling
> block is I can't find any way to set things like From line and signature file
> on a per newsgroup basis. I like to have a different email address for each
> newsgroup so I know where replies (and spam) come from. Is this possible in
> slrn?

Yes, it is.  There have been solutions for this posted here in the
past, one of which I adopted.  Here's the macro I use:

#v+
define article_mode_hook ()
{
   variable signature_file = ".signature/englisch"; % default english signature
   variable reply_s = "In %n, you wrote:\n";
   variable cc_fup_s = "[This messages has also been posted to a newsgroup]\n";
   variable followup_s = "%r wrote:\n";
   variable newsgroup = current_newsgroup ();


   if ( orelse
        { string_match (newsgroup, "^de\.", 1) }
        { string_match (newsgroup, "^kl\.", 1) }
        { string_match (newsgroup, "^schule\.", 1) }
        { string_match (newsgroup, "^wahnes-world\.", 1) }
      )
   {
     signature_file = ".signature/deutsch-usenet"; % deutsche signature
     followup_s = "%r schrieb am %d folgendes:\n";
     reply_s = "Hallo %r,\nDu schriebst am %d in %n:\n";
     cc_fup_s = "[Dies ist die Kopie eines Artikels, der in eine Newsgruppe gepostet wurde]";
   }
   
   %%% certain hierarchies get special settings

   if (
        newsgroup == "de.alt.fan.haraldschmidt"
      )
   {
     followup_s = "Mama, 's %r schreibt:\n";
     signature_file=".signature/dafhs";
   }

   if ( 
        newsgroup == "de.alt.arnooo"
      )
   {
     signature_file = ".signature/arnooo"; % eigenwillige signature
   }
   
   %%% and so do certain groups

   set_string_variable ("signature", signature_file);
   set_string_variable ("followup_string", followup_s);
   set_string_variable ("cc_followup_string", cc_fup_s);
   set_string_variable ("reply_string", reply_s);
}
#v-

If you haven't used macros before: Save the above macro to a file,
change it to your needs and put 
interpret <filename>
into your .slrnrc.

As you can see, this will allow you to change things like the
attribution line or the signature, but not the email address.  From my
experience, I wouldn't recommend publishing more than one address on
the net because they tend to all get spammed after some time so you
would get the same spam several times, but since you seem to have done
this before, you can of course continue doing so with slrn.  To have
slrn post with a different email address per newsgroup, you could use a
macro similar to the above as your make_from_string_hook.


Jens

-- 
"What is robbing a bank compared with founding a bank?"

        - Bertolt Brecht
Technical Details
Message-ID: <slrn97bibr.sac.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!supernews.google.com!sn-xit-02!sn-xit-04!supernews.com!novia!fu-berlin.de!rz.uni-karlsruhe.de!news.uni-ulm.de!news.belwue.de!wahnes-world.de!jewa
References: <slrn9791of.2f0.jdickson@gw.local.net> <slrn97bhjn.dij.lambic@belch.dummy.ca>

Show Full Headers
Complete Article Headers
Message-ID: <slrn97bibr.sac.jewa@message-id.wahnes-world.de>
Subject: Re: [slrn] per-newsgroup settings?
Date: Mon, 29 Jan 2001 19:50:19 +0000
From: Jens Wahnes <jewa@gmx.net>
References: <slrn9791of.2f0.jdickson@gw.local.net> <slrn97bhjn.dij.lambic@belch.dummy.ca>
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!supernews.google.com!sn-xit-02!sn-xit-04!supernews.com!novia!fu-berlin.de!rz.uni-karlsruhe.de!news.uni-ulm.de!news.belwue.de!wahnes-world.de!jewa
Newsgroups: news.software.readers
Organization: Wahnes World
Lines: 82
NNTP-Posting-Host: meise098.wohnheim.uni-kl.de
X-NNTP-Posting-Host: localhost
Mail-Copies-To: nobody
User-Agent: slrn/0.9.6.3 (Linux)