🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #26632

[slrn] saving to MH folder by macro ?

#26632
From: Kikutani Makoto
Date: Fri, 04 Oct 1996 00:00
48 lines
1987 bytes
I'd like to write "saving to MH folder" macro.

(Actually this is implemented in my slrn-Japanese-patch. But
 it seems elegant to implement with S-Lang macro)

macro for only one article is easy:
------------------------------------------------------------- 
define save_article_to_mh_folder ()
{
    variable ng = current_newsgroup ();
    variable mh_saver;

    mh_saver = strcat ("/usr/local/lib/mh/rcvstore +", ng);
    mh_saver = strcat (mh_saver, " -create");
    pipe_article (mh_saver);
}

definekey ("save_article_to_mh_folder", "O", "article");
------------------------------------------------------------- 

But I want save all-thread or all-tagged or all-numerical-tagged
(as same as usual "o" command does).

I thought the follwoing structure,
------------------------------------------------------------- 
    variable count = 1;

    while ( goto_num_tagged_header (count) ) {
        % numerical tagged articles
        pipe_article (mh_saver);
       count++;
    }
------------------------------------------------------------- 
but goto_num_tagged_header returns no value.
I wish that such functions(goto_num_tagged_header, next_tagged_header...)
could return a SUCCESSFULL/FAIL code.

I have no idea for "save all-thread" yet.

Could anybody help me ?

-- 
    菊谷 誠(Kikutani Makoto)
    kikutani@eis.or.jp, hgf03701@niftyserve.or.jp


Technical Details
Message-ID: <slrn55abf8.3dj.kikutani@mako.eis.or.jp>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <slrn55abf8.3dj.kikutani@mako.eis.or.jp>
Subject: [slrn] saving to MH folder by macro ?
Date: Fri, 04 Oct 1996 00:00:00 +0000
From: kikutani@eis.or.jp (Kikutani Makoto)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 187321163
Organization: none
Content-type: text/plain; charset=ISO-2022-JP
Mime-version: 1.0
Newsgroups: news.software.readers