This closes #101 pull request at github/apache/ant repomaster
@@ -292,6 +292,7 @@ Michael Newcomb | |||||
Michael Nygard | Michael Nygard | ||||
Michael Saunders | Michael Saunders | ||||
Michael Seele | Michael Seele | ||||
Mickaël Guessant | |||||
Miha | Miha | ||||
Mike Davis | Mike Davis | ||||
Mike Roberts | Mike Roberts | ||||
@@ -1,6 +1,13 @@ | |||||
Changes from Ant 1.10.7 TO Ant 1.10.8 | Changes from Ant 1.10.7 TO Ant 1.10.8 | ||||
===================================== | ===================================== | ||||
======= | |||||
Other changes: | |||||
-------------- | |||||
* org.apache.tools.mail.MailMessage will now send a fully qualified | |||||
domain name in its HELO message. | |||||
Github Pull Request #101 | |||||
Changes from Ant 1.10.6 TO Ant 1.10.7 | Changes from Ant 1.10.6 TO Ant 1.10.7 | ||||
===================================== | ===================================== | ||||
@@ -1212,6 +1212,10 @@ | |||||
<first>Michael</first> | <first>Michael</first> | ||||
<last>Seele</last> | <last>Seele</last> | ||||
</name> | </name> | ||||
<name> | |||||
<first>Mickaël</first> | |||||
<last>Guessant</last> | |||||
</name> | |||||
<name> | <name> | ||||
<last>Miha</last> | <last>Miha</last> | ||||
</name> | </name> | ||||
@@ -393,7 +393,7 @@ public class MailMessage { | |||||
} | } | ||||
void sendHelo() throws IOException { | void sendHelo() throws IOException { | ||||
String local = InetAddress.getLocalHost().getHostName(); | |||||
String local = InetAddress.getLocalHost().getCanonicalHostName(); | |||||
int[] ok = {OK_HELO}; | int[] ok = {OK_HELO}; | ||||
send("HELO " + local, ok); | send("HELO " + local, ok); | ||||
} | } | ||||
@@ -44,7 +44,7 @@ public class MailMessageTest { | |||||
@Before | @Before | ||||
public void setUp() { | public void setUp() { | ||||
try { | try { | ||||
local = InetAddress.getLocalHost().getHostName(); | |||||
local = InetAddress.getLocalHost().getCanonicalHostName(); | |||||
} catch (java.net.UnknownHostException uhe) { | } catch (java.net.UnknownHostException uhe) { | ||||
// ignore | // ignore | ||||
} | } | ||||