|Subject:||mailto does not have a host() method|
I noticed that mailto URIs do not have host() or userinfo() methods. This is technically correct (see below) but surprising to everyone who hasn't studied the URI RFCs (I had to look it up). The attached patch explains this in the docs.
From f926b75e057ba46679111262c49c559273520eb1 Mon Sep 17 00:00:00 2001 From: Michael G. Schwern <firstname.lastname@example.org> Date: Wed, 21 Oct 2009 19:02:29 -0700 Subject: [PATCH] Note that mailto does not contain a host() and this is not a bug. --- URI.pm | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/URI.pm b/URI.pm index f76bbb7..2f1cc4e 100644 --- a/URI.pm +++ b/URI.pm @@ -811,6 +811,10 @@ C<URI> objects belonging to the mailto scheme support the common methods and the generic query methods. In addition, they support the following mailto-specific methods: $uri->to, $uri->headers. +Note that the "email@example.com" part of a mailto is I<not> the +C<userinfo> and C<host> but instead the C<path>. This allowed a +mailto to contain multiple comma-seperated email addresses. + =item B<mms>: The I<mms> URL specification can be found at L<> -- 1.6.5