CustomConfig funtions and parameters.

Christiaan den Besten chris at scorpion.nl
Wed Mar 23 21:57:59 GMT 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. ]

And how do you get them in the 'check' function ?

MailScanner.conf:
Use SpamAssassin =
&HashTable("UseSA","/etc/MailScanner/rules/spamassassin.rules")

InitHashTable {
    my ($tabelname, $filename) = @_;
}

HashTable {
    my ($tabelname, $filename, $message) = @_;
}

EndHashTable {
    my ($tabelname, $filename) = @_;
}

After some testing these parameters are found in Init and End
functions, but I don't see how (which order with $message) to fetch
them in the "HashTable" function. Any hint ?

bye,
Chirs

----- Original Message -----
From: "Julian Field" <MailScanner at ecs.soton.ac.uk>
To: "Christiaan den Besten" <chris at scorpion.nl>; "MailScanner
mailing list" <MAILSCANNER at JISCMAIL.AC.UK>
Sent: Wednesday, March 23, 2005 12:50 PM
Subject: Re: CustomConfig funtions and parameters.


> Here is a brief example:
>
> Outgoing Queue Dir = &ChooseZMOutQueueDir("dir1","dir2")
>
> and then in the Custom Function file:
>
> my @ZMOutQueueDirs=();
>
> sub InitChooseZMOutQueueDir {
>  @ZMOutQueueDirs=@_;
>
>  MailScanner::Log::InfoLog("Initializing ChooseZMOutQueueDir
> Version %s...",
>
> $MailScanner::CustomConfig::ZMRouterDirHash::VERSION);
> .....
> So they just get picked up as parameters to the Init.... function.
> It's that simple.
>
> Christiaan den Besten wrote:
>
>> Hi !
>>
>> I remember from some month's ago someone proposed to be able to
>> add
>> parameters to a custom function being used as a ruleset. Has this
>> even been build ? I would like to use it ;)
>>
>> e.g. "Use Spamassasin = &Hashtable ("type1","hash-sa-table");" or
>> something like that ....
>>
>> bye,
>> Chris
>>
>> ------------------------ 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 MAQ (http://www.mailscanner.biz/maq/)
>> 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
>
>
>

------------------------ 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 MAQ (http://www.mailscanner.biz/maq/) 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