> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

[snip]
> would it be difficult to detect 
> which format the 
> host was specified?
> 
> If there are multiple colons, it would be an IPv6 numeric 
> address.  If 
> there is only one, it is hostname:port or IPv4:port. 

IIRC, IPv6 uses single colons unless there is an 
un-ambiguous string of all zero which can be replaced by 
2 colons (but only once - otherwise it would be ambiguous)

It may be possible to easily detect and IPv6 address vs. a 
hostname:port or even IPv4:port, but the use of a single 
vs. double colon wouldn't be the method.

Maybe the use of the method in RFC2372 - similar to what
sendmail uses. 
(http://www.ietf.org/rfc/rfc2732.txt)
Literal IPv4 or IPv6 addresses must be enclosed in square
brackets [], otherwise they are presumed to be names.
_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to