Skip Menu |
 

This queue is for tickets about the URI CPAN distribution.

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

People
Owner: Nobody in particular
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

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

Attachments
0001-Note-that-mailto-does-not-contain-a-host-and-this-is.patch



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 <schwern@pobox.com> 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 "foo@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<http://sdp.ppona.com/> -- 1.6.5
Applied. Thanks!


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.