[Mimedefang] MIMEDefang Strict Question

Tony Nelson tnelson at starpoint.com
Mon Aug 9 17:10:47 EDT 2004


You have to move the our() outside of the filter_initialize method.

You have the var declared local to the method, it needs to be global.

Tony
-- 
Tony Nelson
Director of IT Operations
Starpoint Solutions LLC
115 Broadway, 2nd Fl
New York, NY  10006


Quoting "Kevin A. McGrail" <kmcgrail at pccc.com>:

> I am looking at converting to strict for my filter.  So far the changes have
> been very minor.  However, I have the following filter_initialize (modified
> for context):
> 
> sub filter_initialize {
>   use DB_File;
> 
>   our ($popauthdbfile);
>   $popauthdbfile = "/etc/mail/popauth.db";
> }
> 
> 
> I then use this variable $popauthdbfile in filter_end.  However, a test
> gives the following error:
> 
> mimedefang.pl -f /etc/mail/mimedefang-filter -test
> 
> Variable "$popauthdbfile" is not imported at /etc/mail/mimedefang-filter
> line 517.
> Global symbol "$popauthdbfile" requires explicit package name at
> /etc/mail/mimedefang-filter line 517.
> Compilation failed in require at /usr/local/bin/mimedefang.pl line 4392.
> 
> Is this innocuous and ignorable?  Am I doing something wrong?
> 
> Regards,
> KAM
> 
> _______________________________________________
> Visit http://www.mimedefang.org and http://www.canit.ca
> MIMEDefang mailing list
> MIMEDefang at lists.roaringpenguin.com
> http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
> 


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


This email message from Starpoint Solutions LLC is for the sole use of the intended recipient(s) and may contain confidential and privileged information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.  Opinions, conclusions and other information in this message that do not relate to the official business of Starpoint Solutions shall be understood as neither given nor endorsed by it.


More information about the MIMEDefang mailing list