πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #216471

Re: Append all new articles to mbox unattended

#216471
From: Andre Majorel
Date: Tue, 05 Feb 2008 16:50
77 lines
4220 bytes
On 2008-02-05, Tom Newton <tom@server.invalid> wrote:
> On 2008-02-05, Andre Majorel <cheney@halliburton.com> wrote:
>> Is there a libre software program for Unix to retrieve by NNTP
>> all new articles in the specified newsgroups and append them to
>> mbox files, one per newsgroup ?
>>
>> I think some form of locking is needed so I can keep the mboxes
>> open in Mutt and no-one overwrites anyone else's changes.
>> Procmail is known to play nice with Mutt so invoking procmail
>> once for each article would be acceptable.
>>
>> Bonus points if it can include the current YYYY-MM in the names
>> of the mbox files.
>
> Use leafnode and run a script that will convert the directories
> full of files with one post each into an mbox with the name
> you want.
>
> I can write that without any problem.

Current solution involves that, with s/leafnode/slrnpull/.
Modifying slrnpull to do what I want is probably somewhat easier
than messing with its spool (that can fail in more ways). What
I'm worried about is locking.

> But what date would the mbox have?

Date of retrieval. If there's a way to reliably get the date at
which it an article was posted, or even at which it arrived on
the news server, I'm not aware of it.

> Would you be downloading new posts once a week and naming each
> new mbox for each newsgroup  with the date and time of the
> download?

That's the idea, except that the program would be run several
times a day. About as often as you'd check your mail.

> So you'd have a directory for each newsgroup, filling with
> mboxes of new posts.

Yes. That or all mboxes in the same directory. Doesn't matter
much.

> Kind of strange..

I'm trying to do three things : read news, post, and archive.

What I used to do was fetching with slrnpull (with infinite
retention) and reading and posting with slrn (working from the
slrnpull spool). There were two problems with that approach :

a) Slrnpull stores each article in a separate file. That does not
   scale well.

b) For Slrn, there are only two possible states for an article :
   read and unread. This is an order of magnitude less convenient
   for me than the mail client three-state view (read, old and
   new).

Replacing the news spool by monthly or quarterly mbox mailboxes
solves a) and lets me replace Slrn by Mutt which solves b).
Unfortunately, that also prevents me from posting as I don't
think Mutt can post via NNTP if it didn't also read via NNTP.
But nothing prevents me from starting Slrn/NNTP to post.

> Mutt has an nntp patch. Does _it_ store posts in mboxes?

If you *save* or *copy* the article, probably. But I'd be
surprised if it preemptively retrieved all articles in the
current newsgroup. Does it do that with IMAP folders ?

-- 
AndrΓ© Majorel <URL:http://www.teaser.fr/~amajorel/>
(Counterfeit: jalegyleg@fleawort.com rymaw@hooligan.com)
"I drink, I smoke, I gamble, I chase girls--but postal chess is
one vice I don't have." -- Mikhail Tal
Technical Details
Message-ID: <slrnfqh4tk.40n.cheney@atc5.vermine.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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!club-internet.fr!feedme-small.clubint.net!feeder1-1.proxad.net!proxad.net!feeder1-2.proxad.net!nerim.net!biggoron.nerim.net!not-for-mail
References: <slrnfqgk13.40n.cheney@atc5.vermine.org> <fo9lu4$pmo$1@registered.motzarella.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrnfqh4tk.40n.cheney@atc5.vermine.org>
Subject: Re: Append all new articles to mbox unattended
Date: Tue, 05 Feb 2008 16:50:01 +0000
From: Andre Majorel <cheney@halliburton.com>
References: <slrnfqgk13.40n.cheney@atc5.vermine.org> <fo9lu4$pmo$1@registered.motzarella.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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!club-internet.fr!feedme-small.clubint.net!feeder1-1.proxad.net!proxad.net!feeder1-2.proxad.net!nerim.net!biggoron.nerim.net!not-for-mail
Newsgroups: news.software.readers
Organization: Dirac Angestun Gesept
Lines: 77
NNTP-Posting-Host: aym.net2.nerim.net
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: biggoron.nerim.net 1202230201 76333 213.41.173.68 (5 Feb 2008
X-Complaints-To: abuse@nerim.net
NNTP-Posting-Date: Tue, 5 Feb 2008 16:50:01 +0000 (UTC)
User-Agent: slrn/0.9.8.0 (Linux)