On Mon, Aug 24, 2009 at 03:54:03PM -0700, Brent Jones wrote: > I was wondering how long a system filter could get, in terms of lines, > statements, and actions. > We have an application which write a new system filter based on new > rules on where to save mail to, add/remove headers, delivery rules, > etc. > Our needs have made the filter get very long, up to 1,000 lines right > now, with about 100 statement blocks.
Actually, you can set MAX_FILTER_SIZE in the Makefile when Exim is compiled to set the maximum filter size. It defaults to 1 megabyte. The compile-time options are documented in doc/OptionLists.txt. We use Exim filters for various spam filtering and have MAX_FILTER_SIZE set to 3000000. This may be way off topic, but speaking of large filter files... Avoid large numbers of regex matches in user or system filters. If you have a large number of them, performance to process even a single message will consume large amount of cpu. It's better to do 100 exact-text matches than 1 regex match. -- Dean Brooks [email protected] -- ## List details at http://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/
