September 16, 2020 12:30 AM, "Wietse Venema" <wie...@porcupine.org> wrote:
> Patrick Proniewski: > >> Hello, >> >> What would be the best way to hold an incoming email that match both >> criteria From=foo and To=bar? >> First I thought about header_checks with something like: >> >> if /^From:.*foo.*/ >> /^To:.*bar.*/ HOLD >> endif >> >> but obviously it can't work as headers are processed 1 by 1. >> The final solution will have to match a unique From: and multiple To:, if >> that's of any importance. > > http://www.postfwd.org supports conditions on sender and recipient. Looks very powerful, may be too much for my needs but I'll take a closer look. Thanks, patpro