Re: [exim] RegEx longer than maximum string length in system…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Schramm, Dominik
Date:  
À: exim-users
Sujet: Re: [exim] RegEx longer than maximum string length in system filter
Hi Ted,

Ted Cooper on Thursday, July 17, 2008 2:28 AM:

> Can you split the regex up into multiple components? ie match
> a common bit to all of them and then use the extra differences
> in other if/then statements. That should remove the limit but
> maybe cause it run slowly.


Unfortunately that is not possible because every part of the
expression is pretty context sensitive. I'm trying to match From
and Date headers against RFC 2822 correctness. My Date expression
is 1000 characters long, the From expression is 1150 characters.

I could test twice and match against one alternative at a time
(there are several alternatives in the expression), but that would
make me split up the regular expression that I so carefully
crafted. :-S

Well, thanks anyway, I certainly won't mess with the code!

Dominik