Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* scoring emails based on the To and Cc headers
@ 2013-04-15  8:43 Mark Longair
  2013-08-01 12:14 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Longair @ 2013-04-15  8:43 UTC (permalink / raw)
  To: info-gnus-english

(I originally asked this at unix.stackexchange.com but someone suggested
to me that it would be more sensible to ask in this group.)

I use Gnus v5.13 in GNU Emacs 24.1.1 to read my email, and I'm having
trouble getting a simple score file to work.  Essentially, I want any
mail that's sent to (or copies) a particular email address to be given
a higher score.  My example score file, in ~/Mail/all.SCORE is:

    (("from"
      ("Mark Longair" 1000))
     ("To"
      ("mark-scoretesting@example.org" 1000)))

I'm making sure that that score file is being used by having added the following to my ~/.gnus file:

    (setq gnus-global-score-files
           '("~/Mail/all.SCORE"))

This does seem to work properly for the rule that matches the From
line - matching messages are highlighted, and when I type V S in the
summary buffer, it shows a score of 1000 for those messages.  However,
the "To" rule doesn't match.  I've seen in the documentation here:

  http://www.gnu.org/software/emacs/manual/html_node/gnus/Score-File-Format.html

... that "Scoring can only be performed on these eight headers: From,
Subject, References, Message-ID, Xref, Lines, Chars and Date", but
here:

  http://www.gnu.org/software/emacs/manual/html_node/gnus/Scoring-On-Other-Headers.html

... says that one can get around this limitation by adding the following
to .gnus:

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

... and then restarting Gnus and running M-x nnml-generate-nov-databases.

I've tried that (with just To and Cc), but the rule for the "To" line
still isn't working, even if I type V R to rescore the articles in my
summary buffer.

Could any possibly suggest how to get this to work?

Many thanks,
Mark

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

* Re: scoring emails based on the To and Cc headers
  2013-04-15  8:43 scoring emails based on the To and Cc headers Mark Longair
@ 2013-08-01 12:14 ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 2013-08-01 12:14 UTC (permalink / raw)
  To: info-gnus-english

Mark Longair <mark-google@longair.net> writes:

>   http://www.gnu.org/software/emacs/manual/html_node/gnus/Scoring-On-Other-Headers.html
>
> ... says that one can get around this limitation by adding the following
> to .gnus:

But you still have to score on "extra" headers.  Try doing the command
at the end of that section of the manual and see what scoring rule it
generates.

-- 
(domestic pets only, the antidote for overdose, milk.)
  No Gnus T-Shirt for sale: http://ingebrigtsen.no/no.php

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

end of thread, other threads:[~2013-08-01 12:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-15  8:43 scoring emails based on the To and Cc headers Mark Longair
2013-08-01 12:14 ` Lars Magne Ingebrigtsen

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).