Just start to write a junit test for this,, Now i notice a problem .. The method helo(InetAddress) in SMTPProtocol needs a InetAddress but i need to test it with not resolvable domains. So if i do a InetAddress.getHostbyName("egjoerg.de"); an exception is thrown before pass this to the HeloCmdHandler..
So i need to create an own witch extends the one which is used now.. Or there are any other solutions ? bye Am Sonntag, den 26.03.2006, 19:22 +0100 schrieb Norman Maurer (JIRA): > [ http://issues.apache.org/jira/browse/JAMES-451?page=all ] > > Norman Maurer updated JAMES-451: > -------------------------------- > > Attachment: helo-v2.patch > > -fix the bug that stefano reported > -update james-config.xml > > TODO: Add junit test. > > > Check for valid domain in HELO > > ------------------------------ > > > > Key: JAMES-451 > > URL: http://issues.apache.org/jira/browse/JAMES-451 > > Project: James > > Type: Wish > > Components: SMTPServer > > Reporter: Norman Maurer > > Assignee: Stefano Bagnara > > Attachments: helo-v2.patch, helo.patch > > > > IT would be nice to let > > /james-dev/src/java/org/apache/james/smtpserver/HeloCmdHandler.java to > > accept an init parameter for specify that the helo value must be an > > resolvable domainname. In RFC HELO names should always a valid domainname. >
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil