🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #253526

Re: slrn-- Requests.

#253526
From: Adam Funk
Date: Sun, 03 Mar 2013 21:13
46 lines
2925 bytes
On 2013-03-02, Mike Yetto wrote:

> When I save a post it always goes to the same file. That file and
> posts_and_replies are treated as local mbox files by Claws
> allowing me to read and search as I wish. 
>
> This isn't what you asked, but it is better than adding a file
> browser/reader to slrn. Using a different program on the existing
> files is the Linux/Unix way to do things. Adding all functions to
> all programs is the Windows solution.


This doesn't answer the OP's question, but what the heck: someone
might find it interesting.  I like to have a nicely greppable
directory tree of my sent messages, so I use the following mess in one
of the files read by '~/.slrnrc':

#v+
define fudge_save_sig () {
    variable tm = localtime (_time ());

    set_string_variable ("save_posts",
       sprintf ("/home/adam/News/sent/%d%02d%02d-%02d%02d%02d.news",
          tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday,
          tm.tm_hour, tm.tm_min, tm.tm_sec));

    variable cmd_fp0 = popen("~/.slrn/sigs/generate-sig.perl", "r");    
}

register_hook("post_hook", "fudge_save_sig");
register_hook("post_file_hook", "fudge_save_sig");
register_hook("reply_hook", "fudge_save_sig");
register_hook("followup_hook", "fudge_save_sig");
register_hook("forward_hook", "fudge_save_sig");
#v-


That has two effects: for each post, it calls a Perl script that
generates a random .sig file, & it generates a date+time-stamped
filename.


-- 
"It is the role of librarians to keep government running in difficult
times," replied Dramoren.  "Librarians are the last line of defence
against chaos."                                       (McMullen 2001)
Technical Details
Message-ID: <70rc0axbkk.ln2@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!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!19no4767118wij.1!news-out.google.com!bp2ni70675wib.1!nntp.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <t%URs.197787$Id.44853@newsfe24.iad> <slrnkj3l0k.4m1.feranija@moose.shawcable.net> <slrn20130302085758.960.twooffive@may.eternal-september.org>

Show Full Headers
Complete Article Headers
Message-ID: <70rc0axbkk.ln2@news.ducksburg.com>
Subject: Re: slrn-- Requests.
Date: Sun, 03 Mar 2013 21:13:11 +0000
From: Adam Funk <a24061@ducksburg.com>
References: <t%URs.197787$Id.44853@newsfe24.iad> <slrnkj3l0k.4m1.feranija@moose.shawcable.net> <slrn20130302085758.960.twooffive@may.eternal-september.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!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!19no4767118wij.1!news-out.google.com!bp2ni70675wib.1!nntp.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
X-Received: by 10.180.7.228 with SMTP id m4mr1188060wia.3.1362345304565;
MIME-Version: 1.0
Newsgroups: news.software.readers
Organization: $CABAL
Lines: 46
X-Trace: individual.net
 x4bXnXFyzg9LqWePDHGdAgXJ/5F+exOomIeR3Bl1ALkEZGH/0nGXkM7UFJQSgkib8W
X-Orig-Path: news.ducksburg.com!not-for-mail
Cancel-Lock: sha1:ezjIfez23AqDMTMi1uvX9v0Uzzw=
 sha1:I5g2NB2llU7ZcIGrtlMFSFJILyU=
User-Agent: slrn/pre1.0.2-2 (Linux)
X-Original-Bytes: 2659