🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #180063

Re: [slrn] interpolating a date in save_posts and save_replies

#180063
From: Adam Funk
Date: Fri, 03 Feb 2006 17:15
27 lines
2054 bytes
On 2006-02-03, Peter J Ross <pjr@kookbusters.org> wrote:

>> I'd like to know if it's possible to put into those values a variable
>> for the date, ideally in YYYYMMDD format, so that instead of having
>> one file of all my posts, I get a separate file for each day,
>> for exampled ~/.slrn/20060203.sent.news for today.
>
> I suggest using sed to rewrite .slrnrc before opening slrn. Using your
> example:

That's not quite what I had in mind, but it's an interesting approach.
It also gives me the idea that I could run from cron a little rotation
script that periodically moves sent.news to a file with a datestamped
name.


> If you want to make the change automatically while slrn is running, I
> don't know a way of doing that.

I was hoping that slrn might have some feature I hadn't discovered yet
that would let me write something like this:
  set save_posts   ".slrn/sent-`date +%Y%m%d`.news"
but I thought it would be a long shot.

-- 
Thanks,
Adam
Technical Details
Message-ID: <cifcb3-ile.ln1@news.ducksburg.com>
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!cyclone1.gnilink.net!gnilink.net!news-out.ntli.net!newsrout1-gui.ntli.net!ntli.net!news.highwinds-media.com!pe1.news.blueyonder.co.uk!blueyonder!text.news.blueyonder.co.uk!53ab2750!not-for-mail
References: <73pbb3-uk6.ln1@news.ducksburg.com> <slrndu6jfn.845.pjr@nntp.petitmorte.net>

Show Full Headers
Complete Article Headers
Message-ID: <cifcb3-ile.ln1@news.ducksburg.com>
Subject: Re: [slrn] interpolating a date in save_posts and save_replies
Date: Fri, 03 Feb 2006 17:15:05 GMT
From: Adam Funk <a24061@yahoo.com>
References: <73pbb3-uk6.ln1@news.ducksburg.com> <slrndu6jfn.845.pjr@nntp.petitmorte.net>
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!cyclone1.gnilink.net!gnilink.net!news-out.ntli.net!newsrout1-gui.ntli.net!ntli.net!news.highwinds-media.com!pe1.news.blueyonder.co.uk!blueyonder!text.news.blueyonder.co.uk!53ab2750!not-for-mail
Newsgroups: news.software.readers
User-Agent: slrn/0.9.8.1pl1 (Debian)
Lines: 27
NNTP-Posting-Host: 82.38.177.88
X-Complaints-To: abuse@blueyonder.co.uk
X-Trace: text.news.blueyonder.co.uk 1138986905 82.38.177.88 (Fri,
NNTP-Posting-Date: Fri, 03 Feb 2006 17:15:05 GMT