- Use the ARC memory model for release builds. - Move logfile to a command line switch, to avoid chicken-and-egg logging when failing to parse YAML. - Fix logic bug: Stop processing rules on a good match - Add performance timer and memory used when logging to file - Rename 'headers' to 'match' in configuration file, more intention revealing - Add logger explicit flock (unlock) at process exit FossilOrigin-Name: 7c439d99044b8d725c2dc1a806eec14fff7f0675afb14920de3c7c2581907640
53 lines
989 B
YAML
53 lines
989 B
YAML
#
|
|
# Example Sieb configuration file.
|
|
#
|
|
|
|
|
|
# Rules tried before global filtering.
|
|
#
|
|
early_rules:
|
|
-
|
|
match:
|
|
TO: ahlon@(laika|ravn|martini)
|
|
filter:
|
|
- [ reformail, -A, "X-Sieb: This matched." ]
|
|
deliver: .whatever
|
|
|
|
## Filter message before additional rules.
|
|
filter:
|
|
- [ reformail, -A, "X-Sieb: Processed!" ]
|
|
|
|
## Ordered, top down, first match wins.
|
|
## Headers are lowercased. Multiple matches are AND'ed.
|
|
##
|
|
## Delivery default is ~/Maildir, any set value is an auto-created maildir under
|
|
## that path.
|
|
##
|
|
rules:
|
|
-
|
|
match:
|
|
x-one: global
|
|
-
|
|
match:
|
|
Subject: .*\s+corepacket\s+.*
|
|
deliver: .balls
|
|
filter:
|
|
- [ reformail, -A, "X-Sieb: Boom!" ]
|
|
-
|
|
match:
|
|
x-three: global
|
|
|
|
|
|
# # Magic "TO" which means To: OR Cc:
|
|
# -
|
|
# headers:
|
|
# TO: regexp
|
|
# deliver: .whereever
|
|
|
|
# # Filter message through reformail, then deliver to ~/Maildir.
|
|
# -
|
|
# headers:
|
|
# x-what: fuckery
|
|
# filter: reformail ...
|
|
|
|
|