Thanks this is applied.
I must have been watching a really good TV show when I tried to write
the first revision because it was pretty easy to see that it was messed
up. :)
--
Serge Knystautas
Loki Technologies - Unstoppable Websites
http://www.lokitech.com/
Noel J. Bergman wrote:
> Speaking of problems, in InSpammerBlacklist.java, please change it to:
>
> public Collection match(Mail mail) {
> String host = mail.getRemoteAddr();
> try {
> //Have to reverse the octets first
> StringBuffer sb = new StringBuffer();
> StringTokenizer st = new StringTokenizer(host, " .", false);
>
> while (st.hasMoreTokens()) sb.insert(0, st.nextToken() + ".");
>
> //Try to look it up
> InetAddress.getByName(sb.append(network).toString());
>
> //If we got here, that's bad... it means the host
> // was found in the blacklist
> return mail.getRecipients();
> } catch (UnknownHostException uhe) {
> //This is good... it's not on the list
> return null;
> }
> }
> }
>
> I have compiled and tested this change, as well. I accidentally left out a
> .toString() in the code I pasted into the e-mail previously.
>
> --- Noel
>
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>