Article View: news.software.readers
Article #229257[tin] with slrnpull
From: Florian Rehnisch
Date: Wed, 21 Jan 2009 11:08
Date: Wed, 21 Jan 2009 11:08
102 lines
4053 bytes
4053 bytes
Hi folks,
tin is a fine newsreader, but it has no real facility to
store articles for offline reading (it has batchmode, but
that sucks).
tin can read articles from an nntp server, but that is no
option, as it requieres a permanent internet link or a local
nntp daemon.
tin can read articles from a news spool. And this is where
slrnpull comes into play. It just downloads a spool for
later reading, and isn't a fullblown newsserver like inn2 or
cnews.
First, one has to decide, where slrnpull should have its dir
for the spool. I prefer my very own spool on my home drive,
but your guess may differ:
#v+
% mkdir /home/flori/var
% mkdir /home/flori/var/spool
% mkdir /home/flori/var/spool/slrnpull.albasani
#v-
Of course, your user and remote server may differ, take
these as examples.
Now, you have to tell slrnpull which groups to get. From my
/home/flori/var/spool/slrnpull.albasani/slrnpull.conf:
#v+
# This file is a sample configuration file for slrnpull. Such a file must
# exist in the slrnpull spool directory.
default 0 733 0
comp.editors
de.comp.editoren
de.comm.software.newsreader
news.software.readers
#v-
That default line mean, get all articles, store for two
years, and get bodies as well (See the sample for details).
Now we can get articles! I have this alias in my .zshrc:
#v+
alias aspull='NNTPSERVER=news.albasani.net \
slrnpull -d ~/var/spool/slrnpull.albasani '
#v-
Now one has to tell tin where to find the spool (from
zshrc):
#v+
function asptin() {
SPDIR=~/var/spool/slrnpull.albasani
TIN_SPOOLDIR=$SPDIR/news/ TIN_LIBDIR=$SPDIR/data/ \
tin -f .newsrc.albasani.local
}
#v-
Now I can read offline. But what, if I wanted to post.
Well, tin needs an inews. Could be just something like this
(in /home/flori/bin/inews):
#v+
#!/usr/bin/perl
shift; # eat the -h option
$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
#v-
But what, tin tries to open /usr/bin/inews, so well:
#v+
# ln -s /home/flori/bin/inews /usr/bin/inews
#v-
Don't forget to make your inews executable:
#v+
% chmod 700 /home/flori/bin/inews
#v-
Well, that's all folks.
Wait, where to get ...
tin is a debian package, you get the sources here
http://www.tin.org/
slrnpull is a debian package as well, but the source is part
of the slrn package
http://slrn.sf.net/
And now, I'm waiting for spring, that I can read my news in
the park.
flori
Technical Details
Message-ID:
<2009-01-21$10.27.17@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!number1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!news2.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!newsfeed.straub-nv.de!news.albasani.net!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <2009-01-21$10.27.17@x.vimhelp.de.vu>
Subject: [tin] with slrnpull
Date: Wed, 21 Jan 2009 11:08:07 +0000
From: eixman@gmx.de (Florian Rehnisch)
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!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!news2.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!newsfeed.straub-nv.de!news.albasani.net!not-for-mail
Newsgroups: news.software.readers
Organization: albasani.net
Lines: 102
X-Trace: news.albasani.net
QrZuuRZWE6yrZt7NfSVUXX1wKjDGkzEyO0WwvXzSonmZTnrUUlHE8FMfISOqMW8xzrAhukfhgUNISUJMmJNKs9WzaFSRGk/AWUb1l5mG7z6ce66DWb56di1dKy9/6Zl3
X-Complaints-To: abuse@albasani.net
NNTP-Posting-Date: Wed, 21 Jan 2009 11:08:07 +0000 (UTC)
X-User-ID: 5IyBSvMQmIezMlQ1hOzEwNfakMyNJwONq0ZuMLwpJrM=
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:1abWlv96VeUJWsLyGomjyMaliCs=
User-Agent: tin/1.9.2-20070201 ("Dalaruan") (UNIX) (Linux/2.6.18-6-686 (i686))
X-NNTP-Posting-Host: OrWfL5zfdsW+Z5AwuwBWsVfKVJe/IuIHYB/9jqioAsI=
X-Filter-Entries: 122