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
the latest returns:
postmap -q - regexp:/tmp/header_checks </tmp/testmail
postmap: warning: regexp map /tmp/header_checks, line 3: invalid
repetition count(s)
I have to write something like this:
/^References: .........................(800 real dots)...*$/ INFO
too long
I've tested various 2.8.x/2.9.x Postfix servers, always on FreeBSD (7.x, 8.x).
It appears that the {i,j} syntax won't tolerate high values of i. This will
work:
/^References: .{80,}$/ INFO too long
But I really need 800, not 80. Any idea?
regards,
Patrick PRONIEWSKI
--
Responsable pôle Opérations - DSI - Université Lumière Lyon 2
Responsable Sécurité des Systèmes d'Information