🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #186774

[slrn] How to add a custom header for specific groups only?

#186774
From: Adam Funk
Date: Tue, 20 Jun 2006 13:32
18 lines
1455 bytes
I'd like to customize slrn so that when I post or follow-up and any of
the groups in the Newsgroups-header match a specified list, slrn runs
an external program to get the value of a custom header, which it
inserts before launching the $EDITOR.

Unfortunately I have very little experience with s-lang, so I'd
appreciate pointers on how to start, in particular:

1. What's the best way to test the Newsgroups header against a list?

2. How do I add a header before the editor is launched?

3. Does a hook registered with post_hook run before the editor is
   launched?

-- 
Thanks,
Adam
Technical Details
Message-ID: <f0alm3-ilu.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!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!newsfeed.r-kom.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <f0alm3-ilu.ln1@news.ducksburg.com>
Subject: [slrn] How to add a custom header for specific groups only?
Date: Tue, 20 Jun 2006 14:32:31 +0100
From: Adam Funk <a24061@yahoo.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!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!newsfeed.r-kom.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Lines: 18
X-Trace: individual.net xd3xlK8rR66tkDiU0BwQEAXjsKt75prS/OJqjgZ+mBKeVoRSam
X-Orig-Path: news.ducksburg.com!news
User-Agent: slrn/0.9.8.1pl1 (Debian)