* Scoring on extra headers?
@ 1998-10-07 10:14 Jean-Yves Perrier
1998-10-07 12:55 ` Francois Felix Ingrand
1998-10-07 13:13 ` Matt Armstrong
0 siblings, 2 replies; 4+ messages in thread
From: Jean-Yves Perrier @ 1998-10-07 10:14 UTC (permalink / raw)
In the gnus info I found:
>Scoring can only be performed on these eight headers:
> `From', `Subject', `References', `Message-ID', `Xref', `Lines',
> `Chars' and `Date'.
Is there a way to perform scoring on another header (an X-... header in my case)?
Regards,
--
Jean-Yves
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Scoring on extra headers?
1998-10-07 10:14 Scoring on extra headers? Jean-Yves Perrier
@ 1998-10-07 12:55 ` Francois Felix Ingrand
1998-10-07 13:17 ` Jean-Yves Perrier
1998-10-07 13:13 ` Matt Armstrong
1 sibling, 1 reply; 4+ messages in thread
From: Francois Felix Ingrand @ 1998-10-07 12:55 UTC (permalink / raw)
Cc: ding
Jean-Yves Perrier <perrier@nagra-kudelski.ch> writes:
> In the gnus info I found:
>
> >Scoring can only be performed on these eight headers:
> > `From', `Subject', `References', `Message-ID', `Xref', `Lines',
> > `Chars' and `Date'.
Yes, yes....
I always wanted to score on X-Newsreader or User-agent to give a plus to
people using Gnus... ;-)
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"May 1998: Did you realize that Ethernet is 25 years old..."
Professional: http://www.laas.fr/~felix mailto:felix@laas.fr
Personal: http://worldserver.oleane.com/felix mailto:felix@dial.oleane.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Scoring on extra headers?
1998-10-07 12:55 ` Francois Felix Ingrand
@ 1998-10-07 13:17 ` Jean-Yves Perrier
0 siblings, 0 replies; 4+ messages in thread
From: Jean-Yves Perrier @ 1998-10-07 13:17 UTC (permalink / raw)
>>>>> "FFI" == Francois Felix Ingrand <felix@laas.fr> writes:
FFI> Yes, yes....
FFI> I always wanted to score on X-Newsreader or User-agent to give a plus to
FFI> people using Gnus... ;-)
I looked myself deeper in the info file and find the answer to my question.
We can add something like this in the score file:
(((&
("from" "Jean-Yves Perrier")
("head" "^Importance:.*high" r))
100))
(this follows extended scoring syntax)
The extension key is therefore the "head"!
The third parameter, r, means regexp.
Regards,
--
Jean-Yves
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Scoring on extra headers?
1998-10-07 10:14 Scoring on extra headers? Jean-Yves Perrier
1998-10-07 12:55 ` Francois Felix Ingrand
@ 1998-10-07 13:13 ` Matt Armstrong
1 sibling, 0 replies; 4+ messages in thread
From: Matt Armstrong @ 1998-10-07 13:13 UTC (permalink / raw)
Cc: ding
Jean-Yves Perrier wrote:
>
> In the gnus info I found:
>
> >Scoring can only be performed on these eight headers:
> > `From', `Subject', `References', `Message-ID', `Xref', `Lines',
> > `Chars' and `Date'.
>
> Is there a way to perform scoring on another header
> (an X-... header in my case)?
Yes. It is described right after the text you quote above. :-)
...In addition to these headers, there are three
strings to tell Gnus to fetch the entire article and do the match
on larger parts of the article: `Body' will perform the match on
the body of the article, `Head' will perform the match on the head
of the article, and `All' will perform the match on the entire
article. Note that using any of these last three keys will slow
down group entry *considerably*. The final "header" you can score
on is `Followup'. These score entries will result in new score
entries being added for all follow-ups to articles that matches
these score entries.
So to match on an X-My-Header: header value of "readme," the score entry
would look something like this (untested):
("head"
("^X-My-Header:.*readme" 100 nil r))
This will be really slow (as noted above).
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1998-10-07 13:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-10-07 10:14 Scoring on extra headers? Jean-Yves Perrier
1998-10-07 12:55 ` Francois Felix Ingrand
1998-10-07 13:17 ` Jean-Yves Perrier
1998-10-07 13:13 ` Matt Armstrong
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).