3.2.4 feed Rules

You can adjust an entry’s score on the basis of the feed that produced it with a “feed” rule. For instance I use this to prioritize certain sources. A feed rule is defined by the following seven elements:

  1. :text: Match text The text to be matched against the feed title, URL or author
  2. :value: Match value The value by which an entry’s score will be adjusted should there be a match
  3. :type: Match type The match type as per above.
  4. :attr: Feed attribute One of the symbols t, u or a for title, URL, or author respectively; this determines the attribute of the feed against which this rule’s text will be matched.
  5. :date: Last match date The last time this rule matched, in seconds since Unix epoch. This element and all that follow it are optional. This element will be maintained by elfeed-score.
  6. :tags: Tag scoping rules You may wish to apply this rule only to entries that have certain tags (or that do not have certain tags). See below for how to do that.
  7. :hits: Hit count The number of times this rule has matched an entry. This field will be automatically kept up-to-date by elfeed-score.

For example, this rule:

("feed"
  (:text "National Weather Service" :value 400 :type S :attr t))

will check the feed title for each entry against the string “National Weather Service” (case will count). Should there be a match, the corresponding entry will have 400 added to its score.