james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Serge Knystautas" <ser...@lokitech.com>
Subject Re: Mailets
Date Mon, 24 Sep 2001 15:01:05 GMT
Oki,

Have you made any progress with the regex matchers?  As for your point of
newbie, we could just create 2 versions of matchers in the appropriate
places... so RemoteAddrInNetwork=10.0.0.*,192.168.* like before, but then
you could also have RemoteAddrInNetworkRegex=(whatever you want).

If you want to send me any matchers you have done, I'll integrate them into
CVS.  If you have made progress, I think it'd be good to stick it in towards
a 2.0 release.

Serge Knystautas
Loki Technologies
http://www.lokitech.com/
----- Original Message -----
From: "Oki DZ" <okidz@pindad.com>
To: <james-dev@jakarta.apache.org>
Sent: Thursday, September 06, 2001 9:13 PM
Subject: Re: Mailets


> On Thu, 6 Sep 2001, Serge Knystautas wrote:
> > Sounds great.  Since it's not that difficult, it'd be nice to have the
> > matchers modified to support regex.  If you've got time to send me some
new
> > versions, I'll patch them into CVS.
>
> I'm currently testing the matchers. There would be little changes in the
> matchers to have them support regex. My only concern is, do all people
> have to understand regex in order to use the matchers? What if some of
> them would like to just entering a list (comma separated values)? I think
> regex (yes, I have to learn more) would match myhost.com and yourhost.com
> easily; eg: "myhost.com|yourhost.com".
>
> Anyway, I think regex is the way.
>
>  public class SenderHostIs extends GenericMatcher {
>     protected RE r;
>
>     public void init() {
> try {
>     r = new RE(getCondition());
> } catch(RESyntaxException rs) {
>     //getMailetContext().getLogger().error(rs.getMessage());
>     System.out.println(rs.getMessage());
> }
>     }
>
> BTW, how do you get the logger from the matcher? I'd like to have the
> above exception in the log, but the getLogger() above doesn't seem to
> work.
>
> Oki
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-dev-help@jakarta.apache.org
>
>


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


Mime
View raw message