Skip site navigation (1) Skip section navigation (2)

Re: Message-ID should surely not be shown as a mailto:URL

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Andrew Sullivan <ajs(at)commandprompt(dot)com>
Cc: pgsql-www(at)postgresql(dot)org
Subject: Re: Message-ID should surely not be shown as a mailto:URL
Date: 2008-06-09 14:34:17
Message-ID: 20080609143417.GA5026@alvh.no-ip.org (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-www
Andrew Sullivan wrote:
> On Mon, Jun 09, 2008 at 02:30:55AM -0400, Tom Lane wrote:

> > I don't pretend to know what is the approved way to deal with these
> > issues, but *this* can't be best practice.
> 
> Obviously, someone is looking for something that _looks_ like a mail
> address, attempting to munge it, and on the way through, changing it
> to a mailto: link.  I think some parsing of the RFC2821/2822 headers
> is needed first, so that one doesn't do this for things like the
> message id.   

Mhonarc does this mangling.  I tried to stop it but couldn't find the
way.  I didn't investigate it too closely though, so most likely there
is a way to make it work.  If anyone wants to spend some time on it,
feel free to send patches.  Our resource files are here:

https://pgweb.postgresql.org/browser/trunk/archives/bin/resource-current
https://pgweb.postgresql.org/browser/trunk/archives/bin/resource-common
https://pgweb.postgresql.org/browser/trunk/archives/bin/resource-utf8

The actual mhonarc call is in this script:
https://pgweb.postgresql.org/browser/trunk/archives/bin/mk-mhonarc

The mhonarc documentation:
http://www.mhonarc.org/MHonArc/doc/mhonarc.html


Oh, FWIW, the Message-ID URLs (which are just hard links actually) are
created by this script:
https://pgweb.postgresql.org/browser/trunk/archives/bin/createmsgid.pl

It has a couple of holes (i.e. there are certain types of Message-Ids
for which it doesn't work), so patches are welcome too.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

pgsql-www by date

Next:From: Tom LaneDate: 2008-06-09 14:38:49
Subject: Re: Message-ID should surely not be shown as a mailto: URL
Previous:From: Andrew SullivanDate: 2008-06-09 13:55:04
Subject: Re: Message-ID should surely not be shown as a mailto:URL

pgsql-hackers by date

Next:From: Simon RiggsDate: 2008-06-09 14:36:07
Subject: Re: Strange issue with GiST index scan taking far toolong
Previous:From: A. KretschmerDate: 2008-06-09 14:24:08
Subject: Re: Strange issue with GiST index scan taking far too long

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group