Message91249
RFC 2368 <http://www.ietf.org/rfc/rfc2368.txt> specifies mailto: URLs as
having the following syntax:
mailtoURL = "mailto:" [ to ] [ headers ]
to = #mailbox
headers = "?" header *( "&" header )
header = hname "=" hvalue
hname = *urlc
hvalue = *urlc
The header fields in these URLs are roughly analogous to query
parameters in other URLs, but urlparse treats them as part of the path
(along with the email address):
>>> import urlparse
>>> urlparse.urlparse("mailto:foo@example.com?subject=hi")
ParseResult(scheme='mailto', netloc='',
path='foo@example.com?subject=hi', params='', query='', fragment='')
It should treat them as query parameters instead, which would not only
make it easier to access them but would also make it easier to access
the email address, since one would no longer have to parse headers, if
any, out of the path first. |
|
Date |
User |
Action |
Args |
2009-08-04 00:42:35 | mykmelez | set | recipients:
+ mykmelez |
2009-08-04 00:42:34 | mykmelez | set | messageid: <1249346554.96.0.279967945769.issue6640@psf.upfronthosting.co.za> |
2009-08-04 00:42:33 | mykmelez | link | issue6640 messages |
2009-08-04 00:42:32 | mykmelez | create | |
|