On Fri, Apr 30, 2021 at 09:36:00PM +0300, Henrik K wrote: > On Fri, Apr 30, 2021 at 11:30:37AM -0700, John Hardin wrote: > > > > Generating a RE fragment that would match on any of the extracted to/cc > > header email addresses would probably be fairly easy as part of this. But > > how would we incorporate that fragment in rules? > > Probably impossible to implement for normal regex rules, because they are > all compiled at start.. it would require modifying them on the fly by > replacing some tag or so. > > Designing a plugin for it would be much easier and more versatile..
Ok thinking about it more, Replacetags already has the base functionality.. could extend it a bit more to replace static metadata like To addresses, which is already parsed and known before any rules run. I'll give it a try.
