🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
8 messages
8 total messages Started by DC Wed, 08 Sep 2004 20:23
[slrn] sort-headers.sl macro no longer working (PING: Thomas)
#155316
Author: DC
Date: Wed, 08 Sep 2004 20:23
23 lines
1986 bytes
I have been using Thomas' sort-headers.sl successfully for some time.

Today, I noticed that my headers were no longer sorted as per my
preferences (method 3 - as per visible_headers in .slrnrc).  As a test,
I tried changing the method to 1 (alphabetical sort).  This had no
effect -- the headers remain unsorted.

I know, for certain, that the macro was working well under slrn 0.9.7.4.
I have since upgraded slrn to 0.9.8.0.  Since I didn't notice *when* the
macro stopped working, I cannot attribute this, with any degree of
certainty, to the upgrade.

I have verified all of my settings and they appear to be in order.  The
macro is loaded on slrn startup and the hooks are in place.

I haven't a clue what could be wrong.  Any help is welcome.

And, no, I am not running the latest version of Zone Alarm.  };O)

-- 
DC                          Linux RU #1000111011000111001

Failure is not an option.  It comes bundled with Windows.
Re: [slrn] sort-headers.sl macro no longer working (PING: Thomas)
#156779
Author: DC
Date: Sat, 09 Oct 2004 02:59
29 lines
2133 bytes
DC wrote:
> I have been using Thomas' sort-headers.sl successfully for some time.

> Today, I noticed that my headers were no longer sorted as per my
> preferences (method 3 - as per visible_headers in .slrnrc).  As a test,
> I tried changing the method to 1 (alphabetical sort).  This had no
> effect -- the headers remain unsorted.

> I know, for certain, that the macro was working well under slrn 0.9.7.4.
> I have since upgraded slrn to 0.9.8.0.  Since I didn't notice *when* the
> macro stopped working, I cannot attribute this, with any degree of
> certainty, to the upgrade.

> I have verified all of my settings and they appear to be in order.  The
> macro is loaded on slrn startup and the hooks are in place.

[...]

<piggyback -- oink!>

Tested using 0.9.8.1 -- no change, still not sorting.

Can anyone help confirm?

-- 
DC                                       Linux RU #1000111011000111001

Health nuts are going to feel stupid someday, lying in hospitals dying
of nothing.
Re: [slrn] sort-headers.sl macro no longer working (PING: Thomas)
#156799
Author: Thomas Schultz
Date: Sat, 09 Oct 2004 17:18
17 lines
1616 bytes
* DC [2004-09-08 20:23] :
[...]
> I have verified all of my settings and they appear to be in order.  The
> macro is loaded on slrn startup and the hooks are in place.

The macro still works for me. You could try if typing

SortHeaders->sort();

at the S-Lang prompt (i.e., hit Ctrl-X ESC while an article is shown in
the pager) will sort header lines. If it does, you should check your
hooks again.
-- 
Thomas Schultz <tststs@gmx.de>  News on slrn: http://slrn.sf.net/news.html
.-----------------------------. [2004-10-07] Released slrn 0.9.8.1
| Home of the slrn newsreader | [2003-08-25] Released slrn 0.9.8.0
| http://slrn.sourceforge.net | [2003-08-19] New slrn FAQ available
Re: [slrn] sort-headers.sl macro no longer working (PING: Thomas)
#156804
Author: DC
Date: Sat, 09 Oct 2004 21:17
29 lines
2179 bytes
Thomas Schultz wrote:
> * DC [2004-09-08 20:23] :
> [...]
>> I have verified all of my settings and they appear to be in order.  The
>> macro is loaded on slrn startup and the hooks are in place.

> The macro still works for me. You could try if typing

> SortHeaders->sort();

> at the S-Lang prompt (i.e., hit Ctrl-X ESC while an article is shown in
> the pager) will sort header lines. If it does, you should check your
> hooks again.

That sorted them.  I'll have to do some digging, I guess.  }:O)

This is really weird.  I've never changed anything in my_hooks.sl since
installing that macro.

(It must be my dual boot with WinXP that's b0rking it.  Yeah, that's it.)

Thanks again, Thomas.  I'll let you know, either way, if/when I get this
sorted out.

-- 
DC                                       Linux RU #1000111011000111001

Health nuts are going to feel stupid someday, lying in hospitals dying
of nothing.
Re: [slrn] sort-headers.sl macro no longer working (PING: Thomas)
#156813
Author: DC
Date: Sat, 09 Oct 2004 22:07
65 lines
2660 bytes
Thomas Schultz wrote:
> * DC [2004-09-08 20:23] :
> [...]
>> I have verified all of my settings and they appear to be in order.  The
>> macro is loaded on slrn startup and the hooks are in place.

> The macro still works for me. You could try if typing

> SortHeaders->sort();

> at the S-Lang prompt (i.e., hit Ctrl-X ESC while an article is shown in
> the pager) will sort header lines. If it does, you should check your
> hooks again.


I've checked everything.  Here's my setup:


~/.slrnrc (snippet)

#v+
% sort-headers.sl - sorted output of header lines
interpret sort-headers.sl
interpret my_hooks.sl
#v-


~/News/macros/sort-headers.sl (snippet)

#v+
% Set preferences %{{{
Prefs["method"] = 3;
Prefs["order"] = "From:,Subject:,Newsgroups:";
%}}}
#v-


~/News/macros/my_hooks.sl (entire file)

#v+
public define read_article_hook()
  {
      SortHeaders->sort();
  }


define pipe_to_urlview ()
{
        pipe_article ("urlview");
}
definekey ("pipe_to_urlview", "^u", "article");
#v-


After you had me run the above command, sorting worked for the duration
of my login session, even after closing slrn.  I then tried a reboot and
now sorting isn't working again.

What could I be missing, here?

-- 
DC                                       Linux RU #1000111011000111001

Health nuts are going to feel stupid someday, lying in hospitals dying
of nothing.
Re: [slrn] sort-headers.sl macro no longer working (PING: Thomas)
#156817
Author: Thomas Schultz
Date: Sat, 09 Oct 2004 23:43
18 lines
1847 bytes
* DC [2004-10-09 22:07] :
[...]
> After you had me run the above command, sorting worked for the duration
> of my login session, even after closing slrn.  I then tried a reboot and
> now sorting isn't working again.

I don't have an idea what may be causing this, sorry.

I'm not sure it will fix your problem, but I just released a new
version of that macro that can handle bodies without articles (for the
true offline functionality) and registers itself for the hook
automatically. You can get it from
<http://slrn.sourceforge.net/macros/sort-headers.sl>
-- 
Thomas Schultz <tststs@gmx.de>  News on slrn: http://slrn.sf.net/news.html
.-----------------------------. [2004-10-07] Released slrn 0.9.8.1
| Home of the slrn newsreader | [2003-08-25] Released slrn 0.9.8.0
| http://slrn.sourceforge.net | [2003-08-19] New slrn FAQ available
Re: [slrn] sort-headers.sl macro no longer working (PING: Thomas)
#156816
Author: DC
Date: Sat, 09 Oct 2004 23:59
22 lines
2056 bytes
Thomas Schultz wrote:
> * DC [2004-10-09 22:07] :
> [...]
>> After you had me run the above command, sorting worked for the duration
>> of my login session, even after closing slrn.  I then tried a reboot and
>> now sorting isn't working again.

> I don't have an idea what may be causing this, sorry.

> I'm not sure it will fix your problem, but I just released a new
> version of that macro that can handle bodies without articles (for the
> true offline functionality) and registers itself for the hook
> automatically. You can get it from
><http://slrn.sourceforge.net/macros/sort-headers.sl>

I'll try that.  Thank you for your time on this.

-- 
DC                                       Linux RU #1000111011000111001

Health nuts are going to feel stupid someday, lying in hospitals dying
of nothing.
Re: [slrn] sort-headers.sl macro no longer working (PING: Thomas)
#156818
Author: DC
Date: Sun, 10 Oct 2004 00:03
27 lines
2275 bytes
DC wrote:
> Thomas Schultz wrote:
>> * DC [2004-10-09 22:07] :
>> [...]
>>> After you had me run the above command, sorting worked for the duration
>>> of my login session, even after closing slrn.  I then tried a reboot and
>>> now sorting isn't working again.

>> I don't have an idea what may be causing this, sorry.

>> I'm not sure it will fix your problem, but I just released a new
>> version of that macro that can handle bodies without articles (for the
>> true offline functionality) and registers itself for the hook
>> automatically. You can get it from
>><http://slrn.sourceforge.net/macros/sort-headers.sl>

> I'll try that.  Thank you for your time on this.

<piggyback>

It works -- w00t!  }:O)

-- 
DC                                       Linux RU #1000111011000111001

Health nuts are going to feel stupid someday, lying in hospitals dying
of nothing.
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