[Mimedefang] Re: tripping up in percent_decode ()
Royce Williams
royce.williams at acsalaska.net
Thu Jun 16 16:12:14 EDT 2005
On 6/15/2005 2:03 PM, Royce Williams wrote:
> mimedefang-multiplexor[1129]: Slave 0 stderr:
> Use of uninitialized value in substitution (s///) at
> /usr/local/bin/mimedefang.pl line 349.
> Use of uninitialized value in concatenation (.) or string at
> /usr/local/bin/mimedefang.pl line 487
Issue on my side, though I'm not sure why it failed in this way.
Turns out that a variable I was using to construct a custom header
was outside any functions in my filter, so it wasn't showing up
when I switched to embedded Perl on this system.
It is odd, though, that my call to action_change header had a second
variable that was declared with 'use vars' but hadn't been set to
anything yet. action_change_header happily accepts this and tries
to use it (resulting in the error), even though action_change_header
appears to want to require two arguments:
$ egrep '^sub action_change_header' /usr/local/bin/mimedefang.pl
sub action_change_header ($$;$) {
David, shouldn't mimedefang.pl have thrown a "not enough arguments"
error if the second argument was only "use vars"'d? Or am I showing
my Perl lack-of-clue?
-royce
--
Royce D. Williams - IP Engineering, ACS
work: [first.last]@acsalaska.net - PGP: 3FC087DB/1776A531
personal: [first]@alaska.net - http://www.tycho.org/royce/
More information about the MIMEDefang
mailing list