Revision: 229
http://svn.sourceforge.net/nmailserver/?rev=229&view=rev
Author: tmyroadctfig
Date: 2007-06-16 08:04:59 -0700 (Sat, 16 Jun 2007)
Log Message:
-----------
Fixed a defect in email address parsing.
Modified Paths:
--------------
NMail/trunk/NMail/DataTypes/EmailAddress.cs
Modified: NMail/trunk/NMail/DataTypes/EmailAddress.cs
===================================================================
--- NMail/trunk/NMail/DataTypes/EmailAddress.cs 2007-06-16 15:04:06 UTC (rev 228)
+++ NMail/trunk/NMail/DataTypes/EmailAddress.cs 2007-06-16 15:04:59 UTC (rev 229)
@@ -116,12 +116,12 @@
this.mailbox = new Mailbox(parts[0], true);
if (parts[1].StartsWith("[") && parts[1].EndsWith("]")) {
- // this IS an IP address
+ // this should be an IP address
string ipAddress = parts[1].Substring(1, parts[1].Length - 2);
this.host = new Host(IPAddress.Parse(ipAddress));
} else {
- // this IS NOT an IP address
- this.host = new Host(new Domain(parts[1]));
+ // this should not be an IP address
+ this.host = new Host(parts[1]);
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|