Now I see a better alternative: Powerful pattern search, with a store of the patterns for later reuse.
Fastmail has this, and reference documentation is excellent:
https://www.fastmail.com/help/receive/search.html