Something obvious in my sieve?
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@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."
participants (2)
-
@lbutlr
-
Erwan David