I am seeing this all over the maillog - happens every 3-5 minutes. Email coming and going fine, but want to clear this up in case something is broken.
Code: Select all
Dec 7 08:25:23 mars mimedefang-multiplexor[2259]: Slave 5 stderr: Use of uninitialized value in substitution (s///) at /usr/bin/mimedefang.pl line 342. Use of uninitialized value in concatenation (.) or string at /usr/bin/mimedefang.pl line 495.
Dec 7 08:29:53 mars mimedefang-multiplexor[2259]: Slave 5 stderr: Use of uninitialized value in substitution (s///) at /usr/bin/mimedefang.pl line 342. Use of uninitialized value in concatenation (.) or string at /usr/bin/mimedefang.pl line 495.
Dec 7 08:29:54 mars mimedefang-multiplexor[2259]: Slave 5 stderr: Use of uninitialized value in substitution (s///) at /usr/bin/mimedefang.pl line 342. Use of uninitialized value in concatenation (.) or string at /usr/bin/mimedefang.pl line 495.
Dec 7 08:29:54 mars mimedefang-multiplexor[2259]: Slave 5 stderr: Use of uninitialized value in substitution (s///) at /usr/bin/mimedefang.pl line 342. Use of uninitialized value in concatenation (.) or string at /usr/bin/mimedefang.pl line 495.
Here are the lines that are around 342
Code: Select all
#***********************************************************************
# %PROCEDURE: percent_encode
# %ARGUMENTS:
# str -- a string, possibly with newlines and control characters
# %RETURNS:
# A string with unsafe chars encoded as "%XY" where X and Y are hex
# digits. For example:
# "foo\r\nbar\tbl%t" ==> "foo%0D%0Abar%09bl%25t"
#***********************************************************************
sub percent_encode ($) {
my($str) = @_;
$str =~ s/([^\x21-\x7e]|[%\\'"])/sprintf("%%%02X", unpack("C", $1))/ge;
#" Fix emacs highlighting...
return $str;
}
and 495
Code: Select all
sub write_result_line2 ($$$) {
my($cmd, $arg1, $arg2) = @_;
$arg1 = percent_encode($arg1);
$arg2 = percent_encode($arg2);
print RESULTS "$cmd$arg1 $arg2\n" or die("Could not write RESULTS line: $!");
}
Anyone else have this issue and is it a big problem?
Thank you