Re: Auto-ignore macro issue

Andrew <[email protected]>
Newsgroups gmane.network.slrn.user
Message-ID <[email protected]>
On Fri, 2 Nov 2007 23:39:08 +0000 (UTC),
Jörg Sommer <[email protected]> wrote:

> This looks like the hook failed. Can you put
>
> _traceback = 1;
> open_log_file("/tmp/slrn.slang.log");
>
> before the define …, enter a group and look into /tmp/slrn.slang.log.


Done. OK, now when I enter the group, slrn says: "Error encountered 
while executing _auto_ignore_subthread".

Here's /tmp/slrn.slang.log:

----------------------------------------
/home/andrew/News/macros/auto_ignore.sl:26:_auto_ignore_subthread:Stack Underflow Error
  Local variables for _auto_ignore_subthread:
	Integer_Type old_sorting_method = 11
	Integer_Type bad_score = -2000
	Integer_Type new_bad_score = -2001
	Integer_Type expiry = 0
	Integer_Type art_score = -2000
	Integer_Type head_num = 63221
----------------------------------------

Now, since I inserted 3 lines at the macro's beginning (the 2 lines you 
posted and a blank line), line 26 is as follows:

----------------------------------------
           set_header_flags(get_header_flags () & ~HEADER_TAGGED);
----------------------------------------


> Did you load the onekey-score _before_ auto_ignore?


Yes, that's what I did.

Cheers,
Andrew



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.