Patrick Proniewski:
> Hello,
>
> I'm trying to create an header_check filter (regexp format) that
> would issue a warning (or info) when the "References:" header is
> longer than 800 characters. I've discovered that using this kind
> of syntax won't work:
>
> /^References: .\{800,\}$/ INFO too long
> /^References: .{800,}$/ INFO too long
Are you concerned about buffer overflow problems?
As documented in the Postfix regexp_table(5) manpage:
The regular expression syntax is documented in re_format(7)
with 4.4BSD, in regex(5) with Solaris, and in regex(7) with
Linux. Other systems may use other document names.
Limitations on repetition counts come from the regular expression
library, not from Postfix. Don't blame the messenger.
BTW the pcre library does not complain about 800 repetitions.
Wietse