Re: Bug#374462: "by Msg-ID" option in kill/autoselect menu inserts msgid not msgid_only in .tin/filter

Urs Janßen <[email protected]>
Newsgroups gmane.network.tin.devel
Message-ID <[email protected]>
On Mon, Jun 19, 2006 at 05:14:49PM +0200, Torsten Jerzembeck wrote:
> Package: tin
> Version: 1:1.8.2-1
> Severity: minor
> 
> In order to add new entries to the .tin/filter file, tin offers a menu
> screen with several options. One of these options is to enter free form
> text and to choose between some common options where tin should apply
> this text.
> 
> However, if one selects the option "Apply pattern to: Message-ID: line",
> tin creates a scoring rule with the keyword "msgid", which matches the
> contents of the Message-ID _and_ the References header. In my opinion
> the rule created should use the "msgid_only" keyword.

quick and dirty fix:

--- filter.c	2006-02-15 19:44:37.000000000 +0100
+++ filter.c	2006-06-19 18:32:11.384235114 +0200
@@ -1165,8 +1165,9 @@
 			case FILTER_SUBJ_CASE_SENSITIVE:
 			case FILTER_FROM_CASE_SENSITIVE:
 			case FILTER_MSGID:
-			case FILTER_MSGID_LAST:
-			case FILTER_MSGID_ONLY:
+				rule.counter = FILTER_MSGID_ONLY;
+/*			case FILTER_MSGID_LAST:
+			case FILTER_MSGID_ONLY: */
 				/* rule.icase is FALSE already, no assignment necessary */
 				break;
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.