Commit graph

6 commits

Author SHA1 Message Date
5775e5f438 Prune nulls from hostname string buffer.
FossilOrigin-Name: 3ca9fd0a12662614b9b144e9cbeadf2fb18252c6fa5c3937717cb5b705ce093d
2023-06-29 13:27:59 +00:00
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
Renamed from src/lib/maildir.nim (Browse further)