Skip to content

Commit d754f12

Browse files
author
Sebastian Wagner
committed
DOC: sieve expert docs clarifications
1 parent 188609b commit d754f12

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/user/bots.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2447,7 +2447,7 @@ Sieve
24472447
**Description**
24482448

24492449
The sieve bot is used to filter and/or modify events based on a set of rules. The
2450-
rules are specified in an external configuration file and with a syntax similar
2450+
rules are specified in an external configuration file and with a syntax *similar*
24512451
to the `Sieve language <http://sieve.info>`_ used for mail filtering.
24522452

24532453
Each rule defines a set of matching conditions on received events. Events can be
@@ -2513,13 +2513,17 @@ The sieve file contains an arbitrary number of rules of the form:
25132513
}
25142514
25152515
2516+
*Please note* that nesting if-statements is currently not possible. `ACTIONS`
2517+
must contain one or more actions of the actions listed below.
2518+
25162519
*Expressions*
25172520

25182521
Each rule specifies on or more expressions to match an event based on its keys
25192522
and values. Event keys are specified as strings without quotes. String values
25202523
must be enclosed in single quotes. Numeric values can be specified as integers
25212524
or floats and are unquoted. IP addresses and network ranges (IPv4 and IPv6) are
2522-
specified with quotes. Following operators may be used to match events:
2525+
specified with quotes. Parentheses in expression statements are not possible.
2526+
The following operators may be used to match events:
25232527

25242528
* `:exists` and `:notexists` match if a given key exists, for example:
25252529

0 commit comments

Comments
 (0)