Clint,

Glad to hear it.  I do agree with you that the other code is broken, and
should be something like:

  StringBuffer sb = new StringBuffer();
  StringTokenizer st = new StringTokenizer(host, " .", false);

  while (st.hasMoreTokens()) sb.insert(0, st.nextToken() + ".");
  netAddress.getByName(sb.append(network));

Would you please submit this change to the CVS tree if you can?  If not,
hopefully Danny or Serge will snag it.  But it should go into the next code
drop, which is suppose to come out this weekend.

        --- Noel

-----Original Message-----
From: Clinton Goudie [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 18, 2002 23:22
To: James Developers List
Subject: RE: InSpammerBlacklist bugs?


You are correct sir.

I've now built this source into my James and tested it. It's working much
better now :)

Clint

-----Original Message-----
From: Noel J. Bergman [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 18, 2002 8:48 PM
To: James Developers List
Subject: RE: InSpammerBlacklist bugs?


> The first bit I wonder about is that the StringTokenizer is using " .".
> I'm not sure if mail.getRemoteAddr(); returns an IP in the format of
> "127 .0 .0 .2"

RTFM.  :-)  Or at least the JDK documentation: All characters in the delim
argument are the delimiters for separating tokens.  In other words, EITHER a
' ' or a '.' would be accepted as a delimiter, so "127 0 0 1" or "127.0.0.1"
or other combination would be acceptable.

        --- Noel


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to