Re: Score threads to which I've posted?
"John E. Davis" <[email protected]>
| Newsgroups | gmane.network.slrn.user |
|---|---|
| Message-ID | <[email protected]> |
Grant Edwards <[email protected]> wrote: > I'd like to be able to raise the scores of threads to which > I've posted and then have those threads highlighted. It looks [...] > Before I start hacking on the adaptive scoring macros to try to > get them to do what I want, does anybody know of a way to > increase scores for a thread to which I post? You might try something like: #v+ private define bump_score_on_threads_with_me () { variable me = "Grant Edwards"; variable delta_score = 10; variable changed = 0; call("header_bob"); uncollapse_threads (); EXIT_BLOCK { call ("header_bob"); collapse_threads (); if (changed) sort_by_sorting_method (); } while (re_fsearch_author(me)) { variable line = get_header_number (); while (has_parent () && header_up (1)) ; do { set_header_score (get_header_score () + delta_score); changed++; } while (header_down (1) && has_parent ()); if ((line == get_header_number ()) && (0 == header_down(1))) break; } } ()=register_hook ("article_mode_startup_hook", &bump_score_on_threads_with_me); #v- --John ------------------------------------------------------------------------------