[Mimedefang] Using MD variables from a .pl file
Oliver Schulze L.
oliver at samera.com.py
Wed Apr 18 04:15:12 EDT 2007
Hi,
I'm doing some development with MD have created an object or calls.
I then call :
require "myfile.pl";
from filter_end() in mimedefang-filter. The problem I'm getting is that
I could not use/see MD variables like $Sender.
I'm don't if it is ok what I'm doing. Any tips are welcome.
Example core:
-----------
#myfile.pl
package myclass;
sub test1() {
print "$Sender\n";
}
1;
-------
in mimedefang-filter I do something like:
$test = new myclass();
$test->test1();
The error in maillog is:
Global symbol "$Sender" requires explicit package name ...
Thanks
Oliver
--
Oliver Schulze L. | Get my e-mail after a captcha in:
Asuncion - Paraguay | http://tinymailto.com/oliver
More information about the MIMEDefang
mailing list