Commit graph

7 commits

Author SHA1 Message Date
a938cf045a Multiple changes.
- 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
2023-06-29 12:58:42 +00:00
d63a73a22a Checkpoint.
- Use an optional logger (global) tied into debug()
- Defer string interpolation for logging until we know we need it

FossilOrigin-Name: 0b3e7b516a0fed2cd11fd49a5ce76fde2db36bffa30914b63f9940a4d79bb5f8
2023-06-23 16:27:37 +00:00
f0221aac0a Add the magic 'TO' header.
Checks both To: and Cc: as an OR, without needing to specify both in separate rules.

FossilOrigin-Name: e8cde0ba2d9b19089d80aeea455d6d6024cda477e206f567a379fd1b1d596815
2023-06-21 04:14:54 +00:00
2952e2cbd7 Got all the header parsing and matching working.
Altered core logic to just be:
	- rules that run before a global filters
	- N global filter(s)
	- rules that run after filters

All steps are optional.

FossilOrigin-Name: 250b5d22e0387865e13a4adee9dadd122583311bde1d015eefb3321c525827be
2023-06-21 03:02:52 +00:00
105b21d9f7 Got message filtering working.
FossilOrigin-Name: 47c9a66b9c547f9af30bebd226b757d475f616b976baf315faae653a01cdf97a
2023-06-20 11:26:41 +00:00
024b108bed Checkpoint. Code layout.
FossilOrigin-Name: 8a2deb5ee3deb752e25c82f50801529de8e28ec95dd9d4f292046bfc09f9dcd2
2023-06-18 02:37:25 +00:00
0313f1681a Iniital scaffolding commit.
FossilOrigin-Name: 879068412740cd5f7da23bf35a547ba7a7182370b5e9b555f22c30c007d3ebc5
2023-06-15 17:08:49 +00:00