I get the following error for this: line 24 is the "contains subset" line .active_sieve: line 24: error: expecting test identifier after ',' in test list, but found '('. .active_sieve: line 24: error: expecting ',' or end of test list ')', but found '{'. .active_sieve: error: parse failed. if anyof (body :contains "files transferred: 0", (header :contains "subject" "a specific subject goes here" ) { This clause produces no error if anyof (header :contains "from" "@unwanted", envelope :matches :detail "to" "extension", exists "X-Facebook" ){ What am I missing? -- "Are you pondering what I'm pondering?" "Yes Brain, but if our knees bent the other way, how would we ride a bicycle?"
Le 19/08/2021 ? 20:23, @lbutlr a ?crit?:> I get the following error for this: line 24 is the "contains subset" line > .active_sieve: line 24: error: expecting test identifier after ',' in test list, but found '('. > .active_sieve: line 24: error: expecting ',' or end of test list ')', but found '{'. > .active_sieve: error: parse failed. > > if anyof (body :contains "files transferred: 0", > (header :contains "subject" "a specific subject goes here" ) { > > This clause produces no error > > if anyof (header :contains "from" "@unwanted", > envelope :matches :detail "to" "extension", > exists "X-Facebook" ){ > > What am I missing? >You must not put an opening parenthesis before the "header :contains", it is the second clause of the anyof
On 2021 Aug 19, at 12:23, @lbutlr <kremels at kreme.com> wrote:> I get the following error for this: line 24 is the "contains subset" line > .active_sieve: line 24: error: expecting test identifier after ',' in test list, but found '('. > .active_sieve: line 24: error: expecting ',' or end of test list ')', but found '{'. > .active_sieve: error: parse failed. > > if anyof (body :contains "files transferred: 0", > (header :contains "subject" "a specific subject goes here" ) {The post was successful, and I nearly immediately saw the top I've been looking at for over a day. if anyof (body :contains "files transferred: 0", header :contains "subject" "a specific subject goes here" ) { (I had an extra '(' and was reading the error as a ')'. Sigh.) -- "Are you pondering what I'm pondering?" "I think so, Brain, but Zero Mostel times anything will still give you Zero Mostel."