🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #237334

slrnpull with tin or gnus (was: slrnpull with multiple servers)

#237334
From: Florian Rehnisch
Date: Tue, 20 Oct 2009 18:35
52 lines
3395 bytes
o Peter J Ross <pjr@example.invalid>:
> Florian Rehnisch <eixman@gmx.de> wrote:
>> Well, I like playing around.  I got slrnpull working with both tin
>> and gnus.

> How? Do you have any configuration tweaks to share? (You seem to be
> suggesting that it didn't work without tweaking.)

Reading is no big deal.  Slrnpull offers a newsspool both tin and
gnus can be trained to read from.

I start tin with the following shell function:

function asptin() {
 SPDIR=~/var/spool/slrnpull.albasani
 TIN_SPOOLDIR=$SPDIR/news/ TIN_LIBDIR=$SPDIR/data/ /opt/tin194/bin/tin -f .newsrc.albasani.local
}

and from my .gnus:
(setq gnus-select-method '(nnspool ""))
(setq gnus-startup-file "~/.newsrc.albasani.local")
(setq nnspool-spool-directory "~/var/spool/slrnpull.albasani/news/")
(setq nnspool-active-file "~/var/spool/slrnpull.albasani/data/active")

Posting news is more tricky.  tin and gnus don't know how to put
an art in slrnpull's out.going queue.  But they take an external
inews script.  So I did some perl (personal stuff stripped):


#!/usr/bin/perl

shift; # eat tin's '-p'
$ts=`date +%s`;
chomp $ts;
$outfile="/home/flori/var/spool/slrnpull.albasani/out.going/X$ts-$$-0.flori";
open OUT,'>',$outfile;
while ($newline=<>) {
	print OUT $newline;
}
close OUT

I put these line into ~/bin/inews.  tin has an option for this.
If this is set to --internal, tin tries /usr/bin/inews when in
spool mode, so I linked that to ~/bin/inews.  From my .gnus:

(setq nnspool-inews-program "~/bin/inews")
(setq nnspool-inews-switches '("-p"))

So, not really magic.
-- 
 flori
Vim-Hilfe auf Deutsch         http://www.florianrehnisch.de/vimhelp/
Technical Details
Message-ID: <2009-10-20$17.34.06@x.vimhelp.de.vu>
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!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!not-for-mail
References: <slrnhcvdhp.80p.catwheezel@ID-107770.user.individual.net> <slrnhcvtag.kb1.rudy@news.albasani.net> <slrnhd0rce.blv.catwheezel@ID-107770.user.individual.net> <e9b6q6x5lq.ln2@news.ducksburg.com> <slrnhd1m7f.3sp.invalid@invalid.org> <slrnhd1qh9.8k7.catwheezel@ID-107770.user.individual.net> <2009-10-12$18.20.54@x.vimhelp.de.vu> <slrnhdcfha.cg4.pjr@pjr.gotdns.org>

Show Full Headers
Complete Article Headers
Message-ID: <2009-10-20$17.34.06@x.vimhelp.de.vu>
Subject: slrnpull with tin or gnus (was: slrnpull with multiple servers)
Date: Tue, 20 Oct 2009 18:35:16 +0000
From: eixman@gmx.de (Florian Rehnisch)
References: <slrnhcvdhp.80p.catwheezel@ID-107770.user.individual.net> <slrnhcvtag.kb1.rudy@news.albasani.net> <slrnhd0rce.blv.catwheezel@ID-107770.user.individual.net> <e9b6q6x5lq.ln2@news.ducksburg.com> <slrnhd1m7f.3sp.invalid@invalid.org> <slrnhd1qh9.8k7.catwheezel@ID-107770.user.individual.net> <2009-10-12$18.20.54@x.vimhelp.de.vu> <slrnhdcfha.cg4.pjr@pjr.gotdns.org>
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!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!not-for-mail
Newsgroups: news.software.readers
Organization: albasani.net
Lines: 52
X-Trace: news.albasani.net
 gpBsieh9anzDPiNp01c3Stf90tGmtKlu71JF1mHrDGMNXzai2r8AsWrwuOBi4kfUUzWu6tzjcnXClReHZQVsie7BofbQ35iFtilwg0p/HiK7N7y2Vl3lnDPToYz4FuWb
X-Complaints-To: abuse@albasani.net
NNTP-Posting-Date: Tue, 20 Oct 2009 18:35:16 +0000 (UTC)
X-User-ID: LPoRyqFmKMmklgeRip/vSl//x6+1hCnDnMQ52JA5I14=
X-Debian: 5.0.3
X-Face: #=0D6>,S]I3Gx`2mT34QDf]m,X.DVA_|,1de'B!<KBvK:G^(`O)Zh2wJto=M3]`}wYj
 2e|]sI!+=#L#n9@:x*](YSEe)94Wr0Re2O0"kEY8b_"53P=wI3stMOBT$E#3nRuGAilWP_Y!Lx
 z?beBY!(K\oZ!74q8v|2lt7fm"n0B.#E5N"T"n];jutK;F"./a!0T(v3>@!=7O%/^?)(00JV8h
 \n~kqPp-
Cancel-Lock: sha1:Et5/cnkKpGp6XWeDeDsq4TqM+EM=
User-Agent: tin
X-NNTP-Posting-Host: Fhs0Kmbqv/6OntpfSXEvUUzMbCH4UO20bSWUvLQv0KQ=