On Wed, 28 May 2014, Arthur Glennie wrote:
Specific to spamassassin, are capture groups ever useful, or should I
always use non-capture groups?
Eg. (lit) vs. (?:lit)
The only place I've found backreferences useful is when writing a header
rule that is looking for the same string in multiple headers.
Other than that, captures are very rare.
If SA had a way to capture a match from rule1 and use that in rule2 you
might see more of that.
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhar...@impsec.org FALaholic #11174 pgpk -a jhar...@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
The more you believe you can create heaven on earth the more
likely you are to set up guillotines in the public square to
hasten the process. -- James Lileks
-----------------------------------------------------------------------
9 days until the 70th anniversary of D-Day