On Sun, 2 May 2021, Loren Wilton wrote:
Now consider variable capture from the message:
header __SUB_CAP Subject:Capture /Your (\w+) Order/i $(__COMPANY)=\1
I like this syntax. I was thinking that the capture would be implied - any
capturing group in a rule would automagically save its (single) match in a
variable named after the rule (kept separate from the rule's score) for
later use, but I like the explicit nature of this approach.
Would :capture play well with (e.g.) :addr, :name, :raw, etc?
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhar...@impsec.org pgpk -a jhar...@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
Tomorrow: the 76th anniversary of VE day