[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

scoring emails based on the To and Cc headers

From: Mark Longair
Subject: scoring emails based on the To and Cc headers
Date: Mon, 15 Apr 2013 01:43:44 -0700 (PDT)
User-agent: G2/1.0

(I originally asked this at 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:

      ("Mark Longair" 1000))
      ("" 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

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:

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

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]