🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #240355

Re: SLRN and My_Posts

#240355
From: W. Citoan
Date: Fri, 09 Apr 2010 02:05
39 lines
2760 bytes
Lewis wrote:
>
>  SO it looks like Adam's macro is at least part of (well, let's be
>  honest, almost all of) what I want. It does not appear to have the
>  newsgroup name in the path, however. Is that available?

Yes, the current_newsgroup() funtion, I believe.  You should take a look
at the Slrn Intrinsic Function Reference Manual:
http://slrn.sourceforge.net/docs/slrnfuns.html
 
>  Then I just throw the code into something like $HOME/.saveposts.sl and
>  add interpret "$HOME/.saveposts.sl" to the .slrnrc? Or does the file
>  need to go somewhere special?

Correct; the file does not need to go somewhere special.  

>  And when Adam said "the same again" I would end up wiht three define
>  functions in the .sl file, right?

Sounds like it.  The available hooks are defined in the Intrinsic
Function Reference Manual.

>  Then what do I set in the .slrcrc file for save_posts and
>  save_replies? Leave them commented out?

Shouldn't matter.  The hook function will overwrite them.

>  OK, one last question before I go, is there a reason to use
>  localtime(__time ()); or could I use the more familiar (to me) date
>  command to build the string?

Not sure, but I think you need to stick with SLRN (or SLANG) functions.
I don't know that SLRN supports external command substitution.  Easy to
test and find out though.

- W. Citoan
-- 
Genius is one percent inspiration and ninety-nine percent perspiration.
-- Thomas A. Edison
Technical Details
Message-ID: <slrnhrt2ql.50o.wcitoan@wcitoan-via.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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder2.news.weretis.net!feeder.eternal-september.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
References: <slrnhrsr4o.kob.g.kreme@cerebus.local>

Show Full Headers
Complete Article Headers
Message-ID: <slrnhrt2ql.50o.wcitoan@wcitoan-via.eternal-september.org>
Subject: Re: SLRN and My_Posts
Date: Fri, 09 Apr 2010 02:05:12 +0000
From: "W. Citoan" <wcitoan@NOSPAM-yahoo.com>
References: <slrnhrsr4o.kob.g.kreme@cerebus.local>
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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder2.news.weretis.net!feeder.eternal-september.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
Newsgroups: news.software.readers
Organization: A noiseless patient Spider
Lines: 39
Injection-Date: Fri, 9 Apr 2010 02:05:12 +0000 (UTC)
Injection-Info: wcitoan-via.eternal-september.org;
 posting-host="8mnaBCPwrvyZ86Jl1qVaqA";
 logging-data="2273"; mail-complaints-to="abuse@eternal-september.org";
 posting-account="U2FsdGVkX18jchxyKBjs34LG4p7acXYL"
User-Agent: slrn/0.9.8.1 (Win32)
X-Antivirus-Status: Clean
X-Antivirus: avast! (VPS 100408-1, 04/08/2010), Outbound message
Cancel-Lock: sha1:GEjKSfw+A639hpyfQ20G7YLuefk=
X-Original-Bytes: 2551