[Mimedefang] problem with file include on mimedefang 2.28

Jason Englander jason at englanders.cc
Fri Jan 10 11:28:05 EST 2003


On Thu, 9 Jan 2003, John McFarlane wrote:

> Jan 10 00:42:08 mail mimedefang-multiplexor: Slave 0 stderr: Can't locate
> /usr/local/etc/mimedefang/mimedefang-filter in @INC (@INC contains: lib
<SNIP>
> In order to fix the problem, I added this after line 3124 (the only change
> I have made to the file)
>
> 	push(@INC,$Filter);

You don't want to do that...  @INC is a list of directories, similar to
PATH.  It's directories that perl will look in for perl library files and
modules.

Here's an example of how perl handles "require" (note: ./foo.pl does
not exist):


#!/usr/bin/perl
require './foo.pl';

root at kyle:~# ./test.pl
Can't locate ./foo.pl in @INC (@INC contains:
/usr/lib/perl5/5.8.0/i686-linux-thread-multi /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i686-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl /usr/lib/perl5/site_perl/5.6.1 .) at test.pl line 2.

Now we create a foo.pl:

root at kyle:~# echo "print \"Hi\\n\"" > foo.pl

root at kyle:~# ./test.pl
Hi


Never seen the freebsd port (or freebsd for that matter), but I'd say -
put a filter file where it's looking for one
(/usr/local/etc/mimedefang/mimedefang-filter) and you should be in
business.

  Jason

-- 
Jason Englander <jason at englanders.cc>
394F 7E02 C105 7268 777A  3F5A 0AC0 C618 0675 80CA




More information about the MIMEDefang mailing list