Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I use Gnus v5.13 in GNU Emacs 24.1.1 to read my email, and I'm having a 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"))

And this does seem to work properly for the rule that matches the From line - matching messages are highlighted, and when I type VS in the summary buffer, it shows a score of 1000 for those messages. However, the "To" rule doesn't match. The documentation here probably explains this when it says:

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

Other documentation, however, suggest that one can get around this limitation by the following steps:

Put the following in your ~/.gnus.el file.

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

Restart Gnus and rebuild your nnml overview files with the M-x nnml-generate-nov-databases command. This will take a long time if you have much mail.

Now you can score on ‘To’ and ‘Cc’ as “extra headers” like so: I e s p To RET RET.

See? Simple.

Unfortunately, it doesn't seem to be that simple. I've added the following to my .gnus file:

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

... restarted Emacs, and I've run M-x nnml-generate-nov-databases, but the rule in my score file for the "To" line, still isn't working, even if I type V R to rescore the articles in my summary buffer.

Can any suggest why this isn't working?

share|improve this question
    
Do you have access to Usenet? In that case, there is a group for Gnus questions. It is much better if you ask there because almost no one here (or anywhere) uses Usenet anymore. I asked a couple of questions there (in the Gnus group) and got answers right away. Most likely, if you haven't removed it, you already have it added as a group. –  Emanuel Berg Apr 12 '13 at 22:36
    
@Emanuel Berg: thanks for the suggestion - I've tried asking the same thing here: groups.google.com/d/msg/gnu.emacs.gnus/yh7j6jBEyI0/GsBHHz8CST4J –  Mark Longair Apr 16 '13 at 14:52
    
Right, that was the group I had in mind. It'll be interesting to see if I'm right or wrong. –  Emanuel Berg Apr 16 '13 at 15:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.