james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank-Michael Böhle <frami...@yahoo.de>
Subject RE: newbie: Spreading common config-infos across multiple mailets
Date Mon, 19 Jan 2004 12:34:16 GMT
 --- Steve Brewin <sbrewin@synsys.com> schrieb: >
Frank-Michael Böhle wrote:
> >
> > Question: Is there a kind of natural way to place
> some
> > global config information, that might be needed by
> > several mailets in a kind of "global section" in
> > James-config?
> 
> Define XML entities at the start of config.xml like
> this...
> 
> <?xml version="1.0"?>
> <!DOCTYPE config [
> <!ENTITY bayesianSpamRecipient
> "spam@bayesian.filter">
> <!ENTITY bayesianHamRecipient "ham@bayesian.filter">
> <!ENTITY bayesianSpamManager
> "spamManager@bayesian.filter">
> ]>
> 
> ...and reference them like this...
> 
> <mailet match="RecipientIs=&bayesianSpamRecipient;"
> class="JDBCBayesianAnalysisFeeder">
> 
> -- Steve

Oh, that sounds good. But where do I put the global
config-info for bayesianHamRecipient? Assume, it has
config-parms parm1=red and parm2=blue. Today, I would
have them like
<parm1>red</parm1>
within the mailet tag. How do I put them instead to
the
Entity-Tag?

Regards,
Frank

__________________________________________________________________

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Mit Yahoo! Suche finden Sie alles: http://suche.yahoo.de

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message