procmail
[Top] [All Lists]

Re: Is there a recipe limit?

2000-02-13 23:44:18
Glen Lee Edwards <GLEdwards(_at_)uswest(_dot_)net> writes:
Is there a limit to the length of a single recipe (in number of lines),
such as using the weighted method as a spam filter and adding in all the
users on the system?

:0
* 5^0
* -10^0 ^TO_.*user1
* -10^0 ^TO_.*user2
...
* -10^0 ^TO_.*user875
* 50^0 spammer1
* 50^0 @spamdomain.com
<many more spammers>
/dev/null

There can be at most INT_MAX conditions.  INT_MAX is the maximum positive
value for the datatype "int" on the given platform.  For most 32bit
platforms this will be 2147483647.  For many platforms (but not all)
this is also the maximum file size, so you would have to have only one
byte per condition, and that doesn't count the ":0" line or the action.

In other words, don't worry about it.


Philip Guenther

<Prev in Thread] Current Thread [Next in Thread>