[imapfilter-devel] Would like longer/dynamic KEY_LEN or better diagnostic

Per Westerlund perw at gbg.dimension.se
Fri Nov 14 16:15:47 EET 2003


Environment:

	bash-2.03$ uname -a
	SunOS xxxxxx 5.8 Generic_108528-09 sun4u sparc SUNW,Ultra-4
	bash-2.03$ /usr/local/bin/imapfilter -V
	IMAPFilter 0.9.4, OpenSSL 0x0090607f

Problem:

I got this error from imapfilter, and had to look a while to find the
problem:

	imapfilter: parse error in config file at row 237

Adding debug, this is what appeared:

	debug: FILTER: 'Week-Month-XXXXXX-YYYYY-Antivir' AND
	debug: MASK: 'BEFORE 07-Nov-2003'
	debug: ACTION: 3 '' 'Month/XXXXXX YYYYY/Antivirus' 0 ''
	imapfilter: parse error in config file at row 237

(At that time, I did not see the error)

I added more printouts, and found that the problem is that KEY_LEN is
shorter that the length of my identifier. (This is in a
machine-generated script, that move mailbox content based on age).


Request:

1) Better warning or error when KEY_LEN is to short. The "error" in the
config file can be difficult to catch, and it is even possible that the
wrong actions are performed!

2) Perhaps increase or make dynamic the key length, for those of us that
usr machine-generated scripts (I can increase KEY_LEN myself, but it is
better if it is in the general distribution).

/Per Westerlund






More information about the Imapfilter-devel mailing list