Skip Menu |

This queue is for tickets about the URI CPAN distribution.

Report information
The Basics
Id: 50728
Status: resolved
Priority: 0/
Queue: URI

Owner: Nobody in particular
Requestors: mschwern [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)


Subject: mailto does not have a host() method
Download (untitled) / with headers
text/plain 239b
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.
Subject: 0001-Note-that-mailto-does-not-contain-a-host-and-this-is.patch
From f926b75e057ba46679111262c49c559273520eb1 Mon Sep 17 00:00:00 2001 From: Michael G. Schwern <> 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. --- | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/ b/ index f76bbb7..2f1cc4e 100644 --- a/ +++ b/ @@ -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 "" 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
Applied. Thanks!

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to