Thread View: news.software.readers
6 messages
6 total messages
Started by Steve Lamb
Sat, 11 Jul 1998 00:00
Needed SLRN function
Author: Steve Lamb
Date: Sat, 11 Jul 1998 00:00
Date: Sat, 11 Jul 1998 00:00
21 lines
1743 bytes
1743 bytes
OK, I know that Cin the article display will mark all articles from the
top to the current position as read, but is there a way to mark from the
bottom to the current position as read? If not, consider this a wish list
item. ;)
For those who are wondering what the use of such a command would be it
has to do with scoring. On large newsgroups (comp.os.linux.*) I score all
subjects that do not contain the string "Re:" with a score of 1. This
floats all of the new threads to the top and all the old threads to the
bottom. Sometimes I don't have time to scan through all the new threads but
wants to mark all the old threads as read. To do that I'd place the cursor
on the first "old" thread and mark from there down as read.
--
Steve C. Lamb | Opinions expressed by me are not my
http://www.calweb.com/~morpheus | employer's. They hired me for my
ICQ: 5107343 | skills and labor, not my opinions!
---------------------------------------+-------------------------------------
Re: Needed SLRN function
Author: Peppe
Date: Sat, 11 Jul 1998 00:00
Date: Sat, 11 Jul 1998 00:00
27 lines
2024 bytes
2024 bytes
Thus wrote Steve Lamb <morpheus@no-spam.calweb.com> > OK, I know that Cin the article display will mark all articles from the > top to the current position as read, but is there a way to mark from the > bottom to the current position as read? If not, consider this a wish list > item. ;) > For those who are wondering what the use of such a command would be it > has to do with scoring. On large newsgroups (comp.os.linux.*) I score all > subjects that do not contain the string "Re:" with a score of 1. This > floats all of the new threads to the top and all the old threads to the > bottom. Sometimes I don't have time to scan through all the new threads but > wants to mark all the old threads as read. To do that I'd place the cursor > on the first "old" thread and mark from there down as read. On this first old thread, you can just hit "c\eU", which will delete all threads and then undelete every thread until (but excuding) the current thread. If you use this more often than "C" you might map it to this. Peppe -- Preben Guldberg __/-\__ "Reading makes a full man; c928400@student.dtu.dk (o o) conference a ready man; ----------------------oOOo (_) oOOo and writing an exact man." http://www.student.dtu.dk/~c928400/ --Francis Bacon
Re: Needed SLRN function
Author: Dawn Owens-Nicholson
Date: Sat, 11 Jul 1998 00:00
Date: Sat, 11 Jul 1998 00:00
85 lines
3565 bytes
3565 bytes
Steve Lamb <morpheus@calweb.com> wrote:
> OK, I know that Cin the article display will mark all articles from the
> top to the current position as read, but is there a way to mark from the
> bottom to the current position as read?
This topic (or something related) came up recently, you should check
DejaNews (http://www.dejanews.com) for specifics. Anyhow, I think you could
make a macro to do this fairly quickly. I'm using a wrapper around the
intrinsic locate_header_by_msgid because I want to preserve the threading
display. You'll want to bind mark_read_to_end to a key. Hope this helps!
define bugfix_locate_header_by_msgid ()
{
% This macro fixes the following known locate_header_by_msgid() bugs:
%
% (1) With collapsed threads, the intrinsic will unnecessarily uncollapse
% a thread.
%
% This macro only uses the bug-free portions of the intrinsic by calling
% it at a time when it is known to work well.
variable sought_message_ID = read_mini ("Enter Message-Id", "", "");
!if (strlen (sought_message_ID)) return ();
variable starting_header = extract_article_header ("Message-ID");
call ("header_bob"); % go to top of article list
% The do-while loop moves the pointer from thread to thread while the
% inner for loop checks the articles in each thread. The collapse
% status of the display is only disturbed when the desired message-ID
% is found inside a thread.
do
{
variable
thread_was_collapsed = is_thread_collapsed (),
t_size = thread_size (),
position;
for (position = 1; position <= t_size; position++)
{
if (sought_message_ID == extract_article_header ("Message-ID"))
return ();
if (position == 1) uncollapse_thread ();
else if (andelse
{ position == t_size } % at end of thread
{ thread_was_collapsed })
collapse_thread ();
if (position != t_size) () = header_down (1);
}
}
while (header_down (1));
% moving to starting place
set_input_string (starting_header); call ("locate_header_by_msgid");
% calling the non-buggy part
set_input_string (sought_message_ID); call ("locate_header_by_msgid");
}
define mark_read_to_end ()
{
if (is_group_mode ())
verror ("%s doesn't work in group mode!", _function_name ());
variable
previous_message_ID = "", % msg-ID to be marked read
message_ID = "", % following msg-ID
starting_place = extract_article_header ("Message-ID");
do
{
previous_message_ID = extract_article_header ("Message-ID");
call ("delete");
message_ID = extract_article_header ("Message-ID");
}
while (previous_message_ID != message_ID);
set_input_string (starting_place); % go back where we started
bugfix_locate_header_by_msgid ();
}
Re: Needed SLRN function
Author: Dawn Owens-Nicholson
Date: Sat, 11 Jul 1998 00:00
Date: Sat, 11 Jul 1998 00:00
16 lines
1499 bytes
1499 bytes
Peppe <c928400@student.dtu.dk> wrote: > On this first old thread, you can just hit "c\eU", which will delete > all threads and then undelete every thread until (but excuding) the > current thread. If you use this more often than "C" you might map it > to this. There is one side effect to this: it modifies the read status of articles that don't need to be affected--the articles above the currently-pointed-to article. I mention it because I use read status applied via scoring to help me automatically skip stuff I'm not usually interested in while still allowing me the ability to go back and read it if I really want to. The original request mentioned using scoring in conjunction with this, so I thought it might be important. Marking everything read and then marking the preceeding stuff unread would throw off that process.
Re: Needed SLRN function
Author: Dawn Owens-Nicholson
Date: Sat, 11 Jul 1998 00:00
Date: Sat, 11 Jul 1998 00:00
21 lines
1237 bytes
1237 bytes
I wrote a macro which included the following do-while loop:
> do
> {
> previous_message_ID = extract_article_header ("Message-ID");
> call ("delete");
> message_ID = extract_article_header ("Message-ID");
> }
> while (previous_message_ID != message_ID);
A small note: You might want to replace this loop with:
do
{
set_header_flags (get_header_flags () | HEADER_READ);
}
while (header_down (1));
but *ONLY* if you want the ability to go against asterisk tags (which
normally, you wouldn't, hence I used the loop quoted above).
Re: Needed SLRN function
Author: Bill McCarthy
Date: Sun, 12 Jul 1998 00:00
Date: Sun, 12 Jul 1998 00:00
16 lines
895 bytes
895 bytes
On 11 Jul 1998 08:38:13 +0700, Steve Lamb wrote: > OK, I know that Cin the article display will mark all articles from the >top to the current position as read, but is there a way to mark from the >bottom to the current position as read? If not, consider this a wish list >item. ;) xc\eU -- Bill McCarthy Wendell, NC USA
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