> On May 11, 2022, at 1:44 AM, Henrik K <h...@hege.li> wrote: > > On Tue, May 10, 2022 at 06:19:38PM -0600, Philip Prindeville wrote: >> See my original message. >> >> I can't think of a single way to match each header, and then test for any of >> them not matching the pattern... > > Simply use regex negative lookahead. > > ALL =~ /^(?!Foo|Bar):/m > > It will hit any line _not_ starting with Foo: or Bar: > Ah, that did it. Of course, if I get false positives, I'll have to search for the header names I forgot to include manually...
- Re: Rule to detect non-standard headers that a... Martin Gregorie
- Re: Rule to detect non-standard headers th... Philip Prindeville
- Re: Rule to detect non-standard header... Martin Gregorie
- Re: Rule to detect non-standard header... Henrik K
- Re: Rule to detect non-standard h... Henrik K
- Re: Rule to detect non-standa... Henrik K
- Re: Rule to detect non-standa... Philip Prindeville
- Re: Rule to detect non-standa... Henrik K
- Re: Rule to detect non-standa... Philip Prindeville
- Re: Rule to detect non-standa... Henrik K
- Re: Rule to detect non-standard h... Philip Prindeville
- Re: Rule to detect non-standard headers th... Philip Prindeville
- Re: Rule to detect non-standard headers that aren't X- ... Loren Wilton
- Re: Rule to detect non-standard headers that aren't X- ... Bill Cole
- Re: Rule to detect non-standard headers that aren't X- ... John Hardin
- Re: Rule to detect non-standard headers that aren'... Philip Prindeville