On Thu, 16 Nov 2017 07:26:43 +0300, Opinicus wrote:
> When I just tried (in rec.arts.books) to create this filter:
>
> newsgroups: alt.war.vietnam,alt.support.depression
>
> I got a syntax error.
Agent does not like the comma not being inside "quotes" or {regex braces}.
A. When you want to filter messages which are cross-posted to at least ONE
of the two groups, use this:
newsgroups: ( alt.war.vietnam | alt.support.depression )
B. When you want to filter messages which are cross-posted to BOTH of the
two groups at the same time, use this:
newsgroups: ( alt.war.vietnam & alt.support.depression )
C. When you want to filter messages where those two groups appear in
the crosspost in that order, one right next to the other, then...
(1) You can avoid the syntax error by using quote marks like this:
newsgroups: "alt.war.vietnam,alt.support.depression"
(2) Even so, there is no assurance that the order in your filter
will match the same order in the message's "Newsgroups" field.
When retrieving headers there is no actual "Newsgroups" field, so
Agent uses the "Xref" field to determine which groups the message
was crossposted to.
REF [1]: Help >> Index >> Filters >> On the newsgroups: field
REF [2]: Help >> Index >> Crossposting >> How Crosspost Management Works
> The same happened with:
>
> newsgroups: alt.war.vietnam, alt.support.depression
>
> Apparently you can only have one newsgroup in the expression. These
> work:
>
> newsgroups: alt.war.vietnam
> newsgroups: alt.support.depression
>
> FWIW the original message has this in the headers:
>
> Newsgroups: rec.arts.books,alt.war.vietnam,alt.support.depression
>
> Applying the filters caught the original message but not a reply to
> it, which had the same Newsgroups: line.
Check what was in the reply's Xref: line from the same server that the
reply's header came from. (Each news server generates its own Xref: line.)
* Filtering happens when retrieving headers.
* When retrieving headers there is no "Newsgroups:" line, so Agent
uses the "Xref:" line to determine which groups the message was
crossposted to.
--
Kind regards
Ralph
🦊