mirror of
https://github.com/mailscope/kumomta.git
synced 2026-09-07 19:18:57 +00:00
This is useful if your hooks have interior logic to decide to filter out a given record. For example, you might have multiple hook endpoints but only messages with certain headers/metadata should be routed to any one of them for a specific event. Without the ability to pre-filter, we need to pay the cost of spooling the event speculatively, and then skipping it when processing logging for the (hopefully!) batch. Using pre-filter you can cut out that overhead. This is not yet documented; we're getting this in to get some feedback before we finalize this interface.