Thread View: news.software.readers
2 messages
2 total messages
Started by Florian Rehnisch
Wed, 21 Jan 2009 11:08
[tin] with slrnpull
Author: 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
Re: [tin] with slrnpull
Author: Florian Rehnisch
Date: Wed, 21 Jan 2009 11:26
Date: Wed, 21 Jan 2009 11:26
25 lines
1941 bytes
1941 bytes
o Florian Rehnisch <eixman@gmx.de>:
> (in /home/flori/bin/inews):
well, I missed something ...
#v+
#!/usr/bin/perl
#############
# quick and dirty inews to use slrnpull with tin
# Copyright 2009 Florian 'eix' Rehnisch, <eixman@gmx.de>
# placed in the public domain
#############
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-
flori
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads