(High) Spam Actions
Matt Hampton
matt at CODERS.CO.UK
Tue Jul 12 14:30:15 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. ]
> Check the syntax with perl -c for starters.
Passes fine - other warnings from other section of code but mine is
clean ;-)
> Also put MailScanner into Debug mode and run 1 batch through it.
OK - getting the following message:
"Undefined subroutine &MailScanner::CustomConfig::InternalActions;
called at /usr/lib/MailScanner/MailScanner/Config.pm line 121."
This appears to be a scoping issue then.
This is confusing as the InitInternalActions and EndInternalActions are
being found - as are all three SQLLogging functions that I pasted into
the file and all 6 are one above the other.
See grep output to show that I am not going mad!
$ grep InternalActions /etc/MailScanner/MailScanner.conf
Spam Actions = &InternalActions;
High Scoring Spam Actions = &InternalActions;
Non Spam Actions = &InternalActions;
$ grep InternalActions * (/usr/lib/MailScanner/MailScanner)
CustomConfig.pm:sub InitInternalActions {
CustomConfig.pm:sub EndInternalActions {
CustomConfig.pm:sub InternalActions {
Any further thoughts?
matt
>
> On 12 Jul 2005, at 12:26, Matt Hampton wrote:
>
>> Hi
>>
>> MailScanner -V extract:
>> Linux xxxxx.com 2.4.27-0.3um #1 Thu Sep 2 11:39:16 GMT 2004 i686 i686
>> i386 GNU/Linux
>>
>> This is Fedora Core release 2 (Tettnang)
>> This is Perl version 5.008003 (5.8.3)
>> This is MailScanner version 4.42.9
>>
>>
>> I am following through the examples in CustomConfig.pm and trying to
>> use the "InternalAction" examples to replace the (High) Spam Actions.
>>
>> I have written some replace modules (included in the CustomConfig.pm)
>> and the InitXXX and EndXXX are working fine and are being called as
>> appropriate. However when the call to the actual function XXX is
>> called MailScanner bombs out and a new child is spawned (endless loop
>> scenario!)
>>
>> code:
>>
>> 1. sub XXX {
>> 2. my($message) = @_;
>> 3. MailScanner::Log::InfoLog("returning deliver for %s",
>> $message->{fromdomain});
>> 4. return 'deliver';
>> 5. }
>>
>> I have tried commenting out lines 2 and 3 but this doesn't seem to
>> make any difference.
>>
>> Any ideas?
>
>
------------------------ 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