Advanced Scoring Syntax with "To" and "Cc" Headers

Husain Alshehhi <[email protected]>
Newsgroups gmane.emacs.gnus.general
Message-ID <[email protected]>
From the documentation[1], one can configure complex rules through and,
or, not operators. The documentation also states that match operators
are "header name strings followed by a match and a match type". The
documentation also provides examples[2].

However, all the docs and the examples provide the simple "from",
"body", "subject", "line" match operators. I am unable to create rules
that use "header" or "extra" operators. Ultimately, I want to setup a
rule that scores an message based on the (1) "from" header AND "to"
header, (2) "from" header AND "cc" header, (3) "from" header AND an
arbitrary header.

gnus errors out when parsing the following rules:

--8<---------------cut here---------------start------------->8---
((&
   ("from" "[email protected]")
   ("to" "[email protected]")) 10)

((&
   ("from" "[email protected]")
   ("header" "[email protected]" "To")) 10)

((&
   ("from" "[email protected]")
   ("header" "[email protected]" s "To")) 10)   

((&
   ("from" "[email protected]")
   ("extra" "To: .*[email protected]")) 10)
--8<---------------cut here---------------end--------------->8---

Any help is appreciated. Thanks.


[1]
https://www.gnu.org/software/emacs/manual/html_node/gnus/Advanced-Scoring-Syntax.html
[2]
https://www.gnu.org/software/emacs/manual/html_node/gnus/Advanced-Scoring-Examples.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.