[imapfilter-devel] MBOX_FILTERS_MAX too small

Stephen Welker stephen.welker at nemostar.com.au
Thu Apr 22 07:05:54 EEST 2004


Currently MBOX_FILTERS_MAX is defined to be 64 - imapfilter v 0.9.6

It is defined in...

  account.h
  filter.h

Interestingly "filter.h" includes "account.h"

So back to my problem...

I have a ".imapfilterrc" file that has 70+ filters for a given mailbox.

Goes to show how useful this program is!

For some time I was confused as to the reason why some low frequency 
messages were not being filtered, then I considered a resource limit 
along the lines of the KEY length as mentioned some time ago on the list 
(yes I had a problem with naming my filters with long "meaningful" names).

This problem was highlighted by the use of "imapfilter -v".

Could MBOX_FILTERS_MAX be increased or made dynamic?

In the interim could a diagnostic be generated if the number of filters 
exceeds the inbuilt maximum?

In the short term I have increased this number myself to 128 and fixed 
the problem I have been experiencing.

Thanks for the good work thus far.

-- 
Stephen Welker,
Nemostar Pty Ltd.
http://www.nemostar.com.au/




More information about the Imapfilter-devel mailing list