Problem with Custom Functions

Dennis Willson taz at TAZ-MANIA.COM
Sun Oct 2 16:53:14 IST 2005


    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

I found it, I had a subroutine with the same name as the SQLBlackWhite
module. I changed its name and the problem has gone away.

Thanks

Julian Field wrote:

 -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Do you end the file with a line saying this?
    1;
If not, it will fail. All my example(s) should end in this.

Dennis Willson wrote:

  

 I'm have a problem with some custom functions. I'm extending MailWatch 
and after adding a new perl module which works perfectly by itself. 
Seems to cause the SQLBlackWhite.pm functions to fail with the error 
message:

Oct  2 00:10:07 smtp MailScanner[9596]: MailScanner E-Mail Virus 
Scanner version 4.44.6 starting...
Oct  2 00:10:08 smtp MailScanner[9596]: Config: calling custom init 
function SQLSpamScores
Oct  2 00:10:08 smtp MailScanner[9596]: Read 4 Spam entries
Oct  2 00:10:08 smtp MailScanner[9596]: Config: calling custom init 
function SQLNoScan
Oct  2 00:10:08 smtp MailScanner[9596]: Read 6 No Spam Scan entries
Oct  2 00:10:08 smtp MailScanner[9596]: Config: calling custom init 
function SQLBlacklist
Oct  2 00:10:08 smtp MailScanner[9596]: Starting up SQL Blacklist
Oct  2 00:10:08 smtp MailScanner[9596]: Could not use Custom Function 
code MailScanner::CustomConfig::InitSQLBlacklist, it could not be 
"eval"ed. Make sure the module is correct with perl -wc
Oct  2 00:10:08 smtp MailScanner[9596]: Config: calling custom init 
function MailWatchLogging
Oct  2 00:10:08 smtp MailScanner[9596]: Started SQL Logging child
Oct  2 00:10:08 smtp MailScanner[9596]: Config: calling custom init 
function SQLHighSpamScores
Oct  2 00:10:08 smtp MailScanner[9596]: Read 3 high Spam entries
Oct  2 00:10:08 smtp MailScanner[9596]: Config: calling custom init 
function SQLWhitelist
Oct  2 00:10:08 smtp MailScanner[9596]: Starting up SQL Whitelist
Oct  2 00:10:08 smtp MailScanner[9596]: Could not use Custom Function 
code MailScanner::CustomConfig::InitSQLWhitelist, it could not be 
"eval"ed. Make sure the module is correct with perl -wc

When I run: *perl -wc SQLBlackWhiteList.pm*  I get: 
*SQLBlackWhiteList.pm syntax OK

*I was running the SQLBlackWhiteList just fine prior to adding my 
module (which again runs just fine itself). My module must be 
interfereing with the SQLBlackWhiteList module somehow. I just don't 
know how.....

Thanks for any help
Dennis
*
*
------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/)
and the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

*Support MailScanner development - buy the book off the website!*
    

 - -- 
Julian Field
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
Professional Support Services at www.MailScanner.biz
MailScanner thanks transtec Computers for their support

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654


-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.0.2 (Build 2424)

iQA/AwUBQz/LihH2WUcUFbZUEQKMuwCgwzOVhaaXY/1DFi4AF76U/lf9pgcAnAsk
k8U3/E3tdgxSpZuBEdb5DWP+
=qRpd
-----END PGP SIGNATURE-----

  



------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/)
and the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!




More information about the MailScanner mailing list