CustomConfig funtions and parameters.
Julian Field
MailScanner at ecs.soton.ac.uk
Wed Mar 23 11:50:47 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. ]
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