Article View: news.software.readers
Article #240369Re: SLRN and My_Posts
From: Lewis
Date: Sun, 11 Apr 2010 07:30
Date: Sun, 11 Apr 2010 07:30
49 lines
3023 bytes
3023 bytes
In message <fkb497xbbu.ln2@news.ducksburg.com>
Adam Funk <a24061@ducksburg.com> wrote:
> On 2010-04-08, Lewis wrote:
>> slrn saves the posts into a single file, I'd prefer that each post be
>> saved in an individual file, something like this:
>>
>> ~/News/Posts/20010/04/news.software.readers/20100408.172346
> I think (but I'm not certain) that the problem there is that it would
> sometimes require slrn to save a file in a directory that doesn't
> exist yet, and I doubt that slrn's file-saving can create new
> directories. (Most *n*x software IME doesn't automatically create
> directories for a file-save.) Maybe someone else can correct or
> confirm this?
That is a frequent problem. In procmail I would do something like...
FAKEVAR=`test -d $HOME/path || mkdir $HOME/path`
But I still know nothing about slang2
> #v+
> interpret ".slrn/macros.sl"
> #v-
> and this is in my ~/.slrn/macros.sl file (along with other things):
> #v+
> define fudge_save_file () {
> 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));
> }
>
> register_hook("post_hook", "fudge_save_file");
> register_hook("post_file_hook", "fudge_save_file");
> register_hook("followup_hook", "fudge_save_file");
> #v-
Ah, that's shorter than what I did.
What's the #v+/#v-?
--
"He has never been known to use a word that might send a reader to the
dictionary." - William Faulkner (about Ernest Hemingway).
Technical Details
Message-ID:
<slrnhs2ul3.vu.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!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!post02.iad!post01.iad!not-for-mailReferences:
<slrnhrsr4o.kob.g.kreme@cerebus.local> <fkb497xbbu.ln2@news.ducksburg.com>Show Full Headers
Complete Article Headers
Message-ID: <slrnhs2ul3.vu.g.kreme@cerebus.local> Subject: Re: SLRN and My_Posts Date: Sun, 11 Apr 2010 07:30:43 +0000 From: Lewis <g.kreme@gmail.com.dontsendmecopies> References: <slrnhrsr4o.kob.g.kreme@cerebus.local> <fkb497xbbu.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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!post02.iad!post01.iad!not-for-mail Newsgroups: news.software.readers Organization: Miskatonic U Mail-Copies-To: nobody X-No-Archive: Yes X-Face: )^b5"R:T7U>9~:PEn3YkzMfW*[b1qKeU.fP9C8~8HpU9}lA&6`bH1z Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Excuse: Been playing lots of WoW User-Agent: slrn/0.9.9p1 (Darwin) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Organization: Newshosting.com - Highest quality at a great price! www.newshosting.com X-Complaints-To: abuse(at)newshosting.com Lines: 49 X-Original-Bytes: 2746