Variable: rsf-definitions-alist
rsf-definitions-alist is a customizable variable defined in
rmail-spam-filter.el.gz.
Value
nil
Documentation
A list of rules (definitions) matching spam messages.
Each rule is an alist, with elements of the form (FIELD . REGEXP). The recognized FIELDS are: from, to, subject, content-type, x-spam-status, and contents. The "contents" element refers to the entire text of the message; all the other elements refer to message headers of the same name.
Using an empty-string for REGEXP is the same as omitting that element altogether.
Each rule should contain one "action" element, saying what to do
if the rule is matched. This has the form (action . CHOICE), where
CHOICE may be either output-and-delete (save to rsf-file, then delete),
or delete-spam (just delete).
A rule matches only if all the specified elements match.
Source Code
;; Defined in /usr/src/emacs/lisp/mail/rmail-spam-filter.el.gz
(defcustom rsf-definitions-alist nil
"A list of rules (definitions) matching spam messages.
Each rule is an alist, with elements of the form (FIELD . REGEXP).
The recognized FIELDS are: from, to, subject, content-type,
x-spam-status, and contents. The \"contents\" element refers to
the entire text of the message; all the other elements refer to
message headers of the same name.
Using an empty-string for REGEXP is the same as omitting that
element altogether.
Each rule should contain one \"action\" element, saying what to do
if the rule is matched. This has the form (action . CHOICE), where
CHOICE may be either `output-and-delete' (save to `rsf-file', then delete),
or `delete-spam' (just delete).
A rule matches only if all the specified elements match."
:type '(repeat
(list :format "%v"
(cons :format "%v" :value (from . "")
(const :format "" from)
(regexp :tag "From" ""))
(cons :format "%v" :value (to . "")
(const :format "" to)
(regexp :tag "To" ""))
(cons :format "%v" :value (subject . "")
(const :format "" subject)
(regexp :tag "Subject" ""))
(cons :format "%v" :value (content-type . "")
(const :format "" content-type)
(regexp :tag "Content-Type" ""))
(cons :format "%v" :value (contents . "")
(const :format "" contents)
(regexp :tag "Contents" ""))
(cons :format "%v" :value (x-spam-status . "")
(const :format "" x-spam-status)
(regexp :tag "X-Spam-Status" ""))
(cons :format "%v" :value (action . output-and-delete)
(const :format "" action)
(choice :tag "Action selection"
(const :tag "Output and delete" output-and-delete)
(const :tag "Delete" delete-spam)
)))))