Variable: newsticker-auto-mark-filter-list
newsticker-auto-mark-filter-list is a customizable variable defined in
newst-backend.el.gz.
Value
nil
Documentation
A list of filters for automatically marking headlines.
This is an alist of the form (FEED-NAME PATTERN-LIST). I.e. each
element consists of a FEED-NAME a PATTERN-LIST. Each element of
the pattern-list has the form (AGE TITLE-OR-DESCRIPTION REGEXP).
AGE must be one of the symbols old or immortal.
TITLE-OR-DESCRIPTION must be one of the symbols title,
description, or all. REGEXP is a regular expression, i.e., a
string.
This filter is checked after a new headline has been retrieved. If FEED-NAME matches the name of the corresponding news feed, the pattern-list is checked: The new headline will be marked as AGE if REGEXP matches the headline's TITLE-OR-DESCRIPTION.
If, for example, newsticker-auto-mark-filter-list looks like
((slashdot ('old 'title "^Forget me!$") ('immortal 'title "Read me")
('immortal 'all "important"))))
then all articles from slashdot are marked as old if they have the title "Forget me!". All articles with a title containing the string "Read me" are marked as immortal. All articles which contain the string "important" in their title or their description are marked as immortal.
Source Code
;; Defined in /usr/src/emacs/lisp/net/newst-backend.el.gz
(defcustom newsticker-auto-mark-filter-list
nil
"A list of filters for automatically marking headlines.
This is an alist of the form (FEED-NAME PATTERN-LIST). I.e. each
element consists of a FEED-NAME a PATTERN-LIST. Each element of
the pattern-list has the form (AGE TITLE-OR-DESCRIPTION REGEXP).
AGE must be one of the symbols `old' or `immortal'.
TITLE-OR-DESCRIPTION must be one of the symbols `title',
`description', or `all'. REGEXP is a regular expression, i.e., a
string.
This filter is checked after a new headline has been retrieved.
If FEED-NAME matches the name of the corresponding news feed, the
pattern-list is checked: The new headline will be marked as AGE
if REGEXP matches the headline's TITLE-OR-DESCRIPTION.
If, for example, `newsticker-auto-mark-filter-list' looks like
((slashdot (\\='old \\='title \"^Forget me!$\") (\\='immortal \\='title \"Read me\")
(\\='immortal \\='all \"important\"))))
then all articles from slashdot are marked as old if they have
the title \"Forget me!\". All articles with a title containing
the string \"Read me\" are marked as immortal. All articles which
contain the string \"important\" in their title or their
description are marked as immortal."
:type '(repeat (list :tag "Auto mark filter"
(string :tag "Feed name")
(repeat
(list :tag "Filter element"
(choice
:tag "Auto-assigned age"
(const :tag "Old" old)
(const :tag "Immortal" immortal))
(choice
:tag "Title/Description"
(const :tag "Title" title)
(const :tag "Description" description)
(const :tag "All" all))
(regexp :tag "Regexp")))))
:group 'newsticker-headline-processing)