Re: Refreshing Message headers
Christian Ebert <[email protected]> Tue, 23 Nov 2021 01:29:04 +0100
| Newsgroups | gmane.network.slrn.user |
|---|---|
| Organization | Phloxic Productions https://phloxic.productions |
| Message-ID | <[email protected]> |
--OgT6anW4H4WxB98e
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
* Duke Normandin on Monday, November 22, 2021 at 10:09:38 -0700:
>> Which S-Lang version do you have?
>
> ─› slsh --version
> slsh version 0.9.4-0; S-Lang version: 2.3.2
>
>> Older, or rather: ancient, versions did not have the || operator,
>> you'd have to replace it with orelse in the script.
>
> I believe that I have a fairly recent version?
Sure. Was just a shot in the dark.
For testing did you try to load another (shipped) script you have
in /usr/share/slang/slrn/slang/ ?
Permissions of the header refresh script might also be worth
checking.
I'm also attaching the script I am using, just to make sure that
there are no copy & paste glitches.
Gook luck!
--
LAST SHIP HOME
Winner of the German Ocean Film Award 2019
--->> https://lastshiphome.de/en
--OgT6anW4H4WxB98e
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="refresh-in-article-mode.sl"
implements ("RefreshInArticleMode");
static define refresh ()
{
variable msgid = extract_article_header ("Message-ID"),
show_article = get_variable_value ("show_article"),
isvisible = is_article_visible (),
cutoff = get_variable_value ("query_read_group_cutoff");
call ("undelete"); % do not expunge article
call ("quit");
% in group display now
call ("refresh_groups");
% silently reenter group
set_integer_variable ("query_read_group_cutoff", 0);
call ("select_group");
set_integer_variable ("query_read_group_cutoff", cutoff);
() = locate_header_by_msgid (msgid, 0);
% display article if it was shown before:
if (isvisible == 3 and show_article == 0 ||
isvisible != 3 and show_article != 0)
call ("hide_article");
}
definekey ("RefreshInArticleMode->refresh", "R", "article");
--OgT6anW4H4WxB98e
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--OgT6anW4H4WxB98e--