[Mimedefang] stderr warnings from mimedefang - can't find them - also a filter_cleanup note

Kevin A. McGrail kmcgrail at pccc.com
Wed Aug 12 16:59:56 EDT 2009


I'm working on a new filter and I've made a ton of changes.  However, I'm 
getting errors like these which I can't seem to track down because the line 
numbers seem to be skewed!

Aug 12 16:43:52 spam mimedefang-multiplexor[8087]: Slave 0 stderr: Use of 
uninitialized value in concatenation (.) or string at 
/etc/mail/mimedefang-filter line 759.
Aug 12 16:44:24 spam mimedefang-multiplexor[8087]: Slave 0 stderr: Use of 
uninitialized value in concatenation (.) or string at 
/etc/mail/mimedefang-filter line 508.
Aug 12 16:44:24 spam mimedefang-multiplexor[8087]: Slave 0 stderr: Use of 
uninitialized value in numeric gt (>) at /etc/mail/mimedefang-filter line 
593.

Line 593, for example, in the filter is a line that doesn't have a greater 
than check on it.  Is there some magic way to convert the line # to the 
correct line number that I'm missing?

As a side-note, I have a blank filter_cleanup currently.  I found that if I 
added return 1 to my filter_cleanup, I no longer got errors on exit such as:

Aug 12 16:34:47 spam mimedefang-multiplexor[8087]: Slave 8 stderr: Use of 
uninitialized value in exit at /usr/local/bin/mimedefang.pl line 5659.

Regards,
KAM 




More information about the MIMEDefang mailing list