Gnus development mailing list
 help / color / mirror / Atom feed
* Score help...
@ 2002-04-28 20:13 Norman Walsh
  2002-04-29  9:43 ` Kai Großjohann
  0 siblings, 1 reply; 8+ messages in thread
From: Norman Walsh @ 2002-04-28 20:13 UTC (permalink / raw)


I'm missing something about scoring. I have the following in my
all.SCORE file:

(("extra"
  ("YES" -1000 nil e "X-Spam-Flag"))
 (mark -500))

I've added 'X-Spam-Flag' to my extra headers:

(setq gnus-extra-headers '(To Cc Newsgroups Keywords X-Spam-Flag)
      nnmail-extra-headers gnus-extra-headers)

and I rebuilt the nnml NOV databases.

But when new mail arrives, even though it has a X-Spam-Flag header
with the value YES, `V S' still says it has a score of 0.

Am I forgetting to turn something on to run scoring every time I enter
a group or something?

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | One may be driven to commit murder by
http://nwalsh.com/            | love or hatred, but one can only
                              | advocate murder out of sheer
                              | wickedness.--Italo Svevo



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Score help...
  2002-04-28 20:13 Score help Norman Walsh
@ 2002-04-29  9:43 ` Kai Großjohann
  2002-04-29 10:19   ` Norman Walsh
  0 siblings, 1 reply; 8+ messages in thread
From: Kai Großjohann @ 2002-04-29  9:43 UTC (permalink / raw)
  Cc: ding

Norman Walsh <ndw@nwalsh.com> writes:

> (("extra"
>   ("YES" -1000 nil e "X-Spam-Flag"))
>  (mark -500))

This doesn't look like the correct format.  Hm.  In the first
position, it seems you should put one of the allowed headers, or
"Head" or "Body" or "All", or something.

The "extra" thing is a symbol that goes in the fourth element, no?

But the help is less than clear on this.

kai
-- 
Silence is foo!



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Score help...
  2002-04-29  9:43 ` Kai Großjohann
@ 2002-04-29 10:19   ` Norman Walsh
  2002-04-29 11:31     ` Kai Großjohann
  2002-04-29 12:08     ` Score help Karl Kleinpaste
  0 siblings, 2 replies; 8+ messages in thread
From: Norman Walsh @ 2002-04-29 10:19 UTC (permalink / raw)
  Cc: ding

/ Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) was heard to say:
| Norman Walsh <ndw@nwalsh.com> writes:
|
|> (("extra"
|>   ("YES" -1000 nil e "X-Spam-Flag"))
|>  (mark -500))
|
| This doesn't look like the correct format.  Hm.  In the first
| position, it seems you should put one of the allowed headers, or
| "Head" or "Body" or "All", or something.
|
| The "extra" thing is a symbol that goes in the fourth element, no?

Well, this is what M-i a L ... etc. created. But if the format is wrong,
that'd explain why it doesn't work :-)

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Debugging is 99% complete most of the
http://nwalsh.com/            | time--Fred Brooks, jr.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Score help...
  2002-04-29 10:19   ` Norman Walsh
@ 2002-04-29 11:31     ` Kai Großjohann
  2002-04-29 11:50       ` .overview parsing bug? [was Re: Score help...] Norman Walsh
  2002-04-29 12:08     ` Score help Karl Kleinpaste
  1 sibling, 1 reply; 8+ messages in thread
From: Kai Großjohann @ 2002-04-29 11:31 UTC (permalink / raw)
  Cc: ding

Norman Walsh <ndw@nwalsh.com> writes:

> Well, this is what M-i a L ... etc. created. But if the format is wrong,
> that'd explain why it doesn't work :-)

Hm.  The "extra" looks fishy.  But what do I know -- I don't grok
scoring.

kai
-- 
Silence is foo!



^ permalink raw reply	[flat|nested] 8+ messages in thread

* .overview parsing bug? [was Re: Score help...]
  2002-04-29 11:31     ` Kai Großjohann
@ 2002-04-29 11:50       ` Norman Walsh
  2002-04-29 14:28         ` Karl Kleinpaste
  0 siblings, 1 reply; 8+ messages in thread
From: Norman Walsh @ 2002-04-29 11:50 UTC (permalink / raw)


/ Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) was heard to say:
| Norman Walsh <ndw@nwalsh.com> writes:
|
|> Well, this is what M-i a L ... etc. created. But if the format is wrong,
|> that'd explain why it doesn't work :-)
|
| Hm.  The "extra" looks fishy.  But what do I know -- I don't grok
| scoring.

Actually, I think it's a different bug. I entered my 'misc.spam'
folder this morning and found that *some* messages were correctly
scored. Digging through my .overview file, I find that if the
X-Spam-Flag header is listed last on the .overview line, the score
rule applies. Otherwise it doesn't.

So, message 3359 was scored:

3359	(none)	tuffy@glay.org	Sun, 28 Apr 2002 11:43:54 -0800	<87d6wi7pi5.fsf@totally-fudged-out-message-id>		1635	43	Xref: nwalsh.com misc.spam:3359 archive.2002-04:21260	X-Spam-Flag: YES	

But message 3361 was not:

3361	FREE Home Equity Quotes! SAVE HUGE TODAY!!      II                1681	bigloans2002@yahoo.com	Sun, 28 Apr 2002 23:08:58 -1700	<00002de824b7$00006854$000001ab@mx1.mail.yahoo.com>		10467	284	Xref: nwalsh.com misc.spam:3361 archive.2002-04:21279	X-Spam-Flag: YES	To: <Undisclosed.Recipients@localhost.localdomain>	

I'm using exact matching and gnus from CVS yesterday.

This looks like a different sort of bug...

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | On the other hand, you have different
http://nwalsh.com/            | fingers.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Score help...
  2002-04-29 10:19   ` Norman Walsh
  2002-04-29 11:31     ` Kai Großjohann
@ 2002-04-29 12:08     ` Karl Kleinpaste
  1 sibling, 0 replies; 8+ messages in thread
From: Karl Kleinpaste @ 2002-04-29 12:08 UTC (permalink / raw)


Norman Walsh <ndw@nwalsh.com> writes:
>| This doesn't look like the correct format.  Hm.  In the first
>| position, it seems you should put one of the allowed headers, or
>| "Head" or "Body" or "All", or something.
>| The "extra" thing is a symbol that goes in the fourth element, no?

> Well, this is what M-i a L ... etc. created. But if the format is wrong,
> that'd explain why it doesn't work :-)

No, that's correct.

"extra" scoring is another class of scoring.  The header name to be
scored is a (new) 5th element in the score entry in "extra" cases.
This has been in Gnus since sometime in 1998, I think, though I fixed
an annoying string-matching bug just a few months ago.

It's possible that `e'xact scoring is doing something wrong in the
context of extra header scoring -- perhaps the whitespace between
header and content has not been handled properly.  You might try
changing the score entry to a `s'ubstring match instead, and see if
that works.  If so, I'll figure out what's wrong with the "exact" case
and fix it.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: .overview parsing bug? [was Re: Score help...]
  2002-04-29 11:50       ` .overview parsing bug? [was Re: Score help...] Norman Walsh
@ 2002-04-29 14:28         ` Karl Kleinpaste
  2002-04-29 14:34           ` Norman Walsh
  0 siblings, 1 reply; 8+ messages in thread
From: Karl Kleinpaste @ 2002-04-29 14:28 UTC (permalink / raw)


Norman Walsh <ndw@nwalsh.com> writes:
> This looks like a different sort of bug...

Experiment with changing the scoring type to substring.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: .overview parsing bug? [was Re: Score help...]
  2002-04-29 14:28         ` Karl Kleinpaste
@ 2002-04-29 14:34           ` Norman Walsh
  0 siblings, 0 replies; 8+ messages in thread
From: Norman Walsh @ 2002-04-29 14:34 UTC (permalink / raw)
  Cc: ding

/ Karl Kleinpaste <karl@charcoal.com> was heard to say:
| Norman Walsh <ndw@nwalsh.com> writes:
|> This looks like a different sort of bug...
|
| Experiment with changing the scoring type to substring.

Yes, that works.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Mankind are always happy for having
http://nwalsh.com/            | been happy; so that if you make them
                              | happy now, you make them happy twenty
                              | years hence by the memory of
                              | it.--Sydney Smith



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-04-29 14:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-28 20:13 Score help Norman Walsh
2002-04-29  9:43 ` Kai Großjohann
2002-04-29 10:19   ` Norman Walsh
2002-04-29 11:31     ` Kai Großjohann
2002-04-29 11:50       ` .overview parsing bug? [was Re: Score help...] Norman Walsh
2002-04-29 14:28         ` Karl Kleinpaste
2002-04-29 14:34           ` Norman Walsh
2002-04-29 12:08     ` Score help Karl Kleinpaste

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).