You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by "Brian J. Sayatovic" <tr...@trinition.org> on 2003/10/14 12:27:56 UTC
Init params for Matchers?
I've only made one Mailet, and now I'm trying to make a Matcher. However, I
can't figure out how to pass initialization parameters to the Matcher
instance. It is passed a MatcherConfig, but that doesn't appear to have any
'getInitParameter()' method.
Any ideas? I basically want to pass a user-configured String value to the
Matcher. I'd hate to resort to a System property.
Regards,
Brian.
--
Help free our mailboxes. Include http://wecanstopspam.org in your signature.
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
RE: Init params for Matchers?
Posted by Vincenzo Gianferrari Pini <vi...@praxis.it>.
This is an old debate, to support or not matcher parameters.
For now the only approach is to use the condition string of the matcher and parse it.
Vincenzo
> -----Original Message-----
> From: Brian J. Sayatovic [mailto:trin@trinition.org]
> Sent: martedi 14 ottobre 2003 12.28
> To: 'James Users List'
> Subject: Init params for Matchers?
>
>
> I've only made one Mailet, and now I'm trying to make a Matcher.
> However, I
> can't figure out how to pass initialization parameters to the Matcher
> instance. It is passed a MatcherConfig, but that doesn't appear
> to have any
> 'getInitParameter()' method.
>
> Any ideas? I basically want to pass a user-configured String value to the
> Matcher. I'd hate to resort to a System property.
>
> Regards,
> Brian.
>
> --
> Help free our mailboxes. Include http://wecanstopspam.org in your
> signature.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org