Thread View: news.software.readers
2 messages
2 total messages
Started by Kikutani Makoto
Fri, 04 Oct 1996 00:00
[slrn] saving to MH folder by macro ?
Author: Kikutani Makoto
Date: Fri, 04 Oct 1996 00:00
Date: Fri, 04 Oct 1996 00:00
48 lines
1987 bytes
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
Re: [slrn] saving to MH folder by macro ?
Author: John E. Davis
Date: Mon, 07 Oct 1996 00:00
Date: Mon, 07 Oct 1996 00:00
18 lines
1254 bytes
1254 bytes
On 4 Oct 1996 15:31:52 GMT, Kikutani Makoto <kikutani@eis.or.jp> wrote: : 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. next_tagged_header and prev_tagged_header do return values. However, they work on `*' tagged headers. As you noted, `goto_num_tagged_header' does not return a value in 0.9.0. It will return a value in 0.9.1. -- John E. Davis Center for Space Research/AXAF Science Center 617-258-8119 MIT 37-662c, Cambridge, MA 02139 http://space.mit.edu/~davis
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads