Re: [exim] Max length of a filter line

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Sandro Tosi
Data:  
Para: exim-users@exim.org
CC: Phil Pennock
Asunto: Re: [exim] Max length of a filter line
Hi Phil,

On 01/20/2011 07:53 PM, Phil Pennock wrote:
> On 2011-01-20 at 14:41 +0100, Sandro Tosi wrote:
>> we are facing a limit in the filter line limit, returning this error:
>>
>> Filter error: string is too long in line 6 of filter file (max = 1024 chars)
>>
>> when indeed the line is longer. Is there a way to increase that length
>> limit (possibly without touching src/&filters.x where it seems to be the
>> limit hardcoded :) ) ?
>
> Nope.
>
> Can you explain the use-case for very long lines with no line-breaks?
> We can raise the limit if there's a fair reason.


well, the use-case is more a users-paranoia-reason :) We have some
customers that defined a lot (the winner is 2800) of email addresses to
filter; we were doing it via procmail rules, but now we're moving to
consolidate everything inside exim via user filters.

We started with one rule per address, but it's making our db backend
crying :) so we decided to create rules with 100 addresses in it (and we
do a <current sender> matches <regexp with 100 addresses>) but then we
are facing the limit of the original message.

am I getting right what the limit of 1024 is not for the whole text of
the rule but for a single line in it? is there some "smart" way to split
into several lines a regexp match? something like

if $sender_address matches "addr1@???|addr2@???|
addr3@???|.....) then ...

or something else?

Thanks in advance,
--
Sandro Tosi
Product Engineer
Shared Hosting Products
R&D | Dada.pro
eml sandro.tosi@???