🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #88731

Re: mbox archive for a news server

#88731
From: Frank Slootweg
Date: Mon, 23 Aug 2021 15:16
54 lines
3548 bytes
Jason Evans <jsevans@mailfence.com> wrote:
> Hi all,
> 
> I would like to know if anyone here knows about an archival tool or 
> script that can be used to back up new articles into mbox format. Similar 
> to what exists in archive.org.  I'm not much of a programmer but before I 
> spend the time and effort to cobble together a bash script to do this, I 
> want to see if someone here already has some this that can do that 
> already. No need to re-invent the wheel, etc. Thanks.

  If I understand your question correctly, then the '-S' option of the
'tin' newsreader can do what you want.

  Here are some relevant sections from the tin(1) manpage:

       -S	   Save	 unread	 articles  for	later  reading	by  the ''-R''
		   option. For more information read section "AUTOMATIC	 MAIL-
		   ING AND SAVING NEW NEWS".

[...]

   AUTOMATIC MAILING AND SAVING NEW NEWS
       tin allows new/unread news articles to be  mailed  (''-M''  and	''-N''
       option)	or saved (''-S'' option) in batch mode for later reading. Use-
       ful when going on holiday and you don't want to return  and  find  that
       expire  has  removed  a	whole load of unread articles. Best to run via
       cron(1) everyday while away, after which you will be mailed a report of
       which  articles	were  mailed/saved from which newsgroups and the total
       number of articles mailed/saved. Articles are saved in a	 private  news
       structure   under   your	 savedir  directory  (default  is  ${TIN_HOME-
       DIR:-"$HOME"}/News).  Be careful of using this option if you read a lot
       of groups because you could overflow your file system.

       When  using  ''-S''  together with a given directory to save to (''-s''
       option), the same directory must be specified when reading the articles
       by ''-R''.

       If  you	only want to save some of your groups use the batch_save tinrc
       variable. Set to ON or OFF in tinrc to  enable/disable  saving  of  all
       groups  and then use the batch_save attribute to fine tune which groups
       you want to have saved. For example, if you want to save most  of  your
       groups, then set batch_save to ON in tinrc and selectively turn off the
       ones you don't want using attributes.

       tin -M iain -c -f newsrc.mail
			   (mail any unread articles in	 newsgroups  specified
			   in file newsrc.mail to the local user iain and mark
			   them as read)

       tin -S -c -f newsrc.save
			   (save any unread articles in	 newsgroups  specified
			   in file newsrc.save and mark them as read)

       tin -R		   (read any articles saved by tin -S)
Technical Details
Message-ID: <sg0l3t.6hg.1@ID-201911.user.individual.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <sfvheu$o2u$1@theuse.news.theuse.net>

Show Full Headers
Complete Article Headers
Message-ID: <sg0l3t.6hg.1@ID-201911.user.individual.net>
Subject: Re: mbox archive for a news server
Date: Mon, 23 Aug 2021 15:16:04 +0000
From: Frank Slootweg <this@ddress.is.invalid>
References: <sfvheu$o2u$1@theuse.news.theuse.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: NOYB
Lines: 54
X-Trace: individual.net VSPfDNdGFkxsjeIEwkEpzgnwRMaqkGbXitk5QK6x5ptVomtvIp
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:mX5ddwA7I2NGryDGVkpa4arlLjo=
User-Agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (CYGWIN_NT-6.3-WOW/2.8.0(0.309/5/3) (i686)) Hamster/2.0.2.2
X-Antivirus: Avast (VPS 210823-0, 08/23/2021), Outbound message
X-Antivirus-Status: Clean