You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Eike Rathke <oo...@erack.de> on 2011/07/12 22:44:57 UTC

Script to generate mail archive URL from message

Hi,

Seen that every message to the mailing list can be retrieved from the
archive using an URL of the form
http://mail-archives.apache.org/mod_mbox/incubator-ooo-dev/YYYYMM.mbox/%3CMessage-ID%3E
I hacked a script that parses a message from stdin to generate the
corresponding URL, attached. In Mutt this can be invoked as pipe on
a message with

|apache-mail-archive-url.pl

Using Thunderbird you probably have to save the raw message as file
first unless there is an add-on to invoke arbitrary commands on
a message.

Best of course would be if the mailing list software would insert
a header X-Archive-URL before distributing the message that could be
copied to the clipboard.

  Eike

-- 
 PGP/OpenPGP/GnuPG encrypted mail preferred in all private communication.
 Key ID: 0x293C05FD - 997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD

Re: Script to generate mail archive URL from message

Posted by Shane Curcuru <as...@shanecurcuru.org>.
Note that in general for any official Apache project work we prefer to 
use links to apache.org resources where possible.  I.e. for board 
reports and for the bulk of public websites about Apache projects, we 
expect projects to use the Apache mail-archives.a.o server.

This is because our own Apache infrastructure team is responsible for 
maintaining them, so we can be assured that these links will remain 
present as long as the ASF is around.

This is nothing against other mail archive providers, just a general 
note to ponder.  I certainly like the UI at http://apache.markmail.org/ 
better than mail-archive.a.o for searching out messages and threads.

- Shane

On 7/12/2011 5:39 PM, Christian Lohmaier wrote:
> Hi Eike, *,
>
> On Tue, Jul 12, 2011 at 10:44 PM, Eike Rathke<oo...@erack.de>  wrote:
>>
>> Seen that every message to the mailing list can be retrieved from the
>> archive using an URL of the form
>> http://mail-archives.apache.org/mod_mbox/incubator-ooo-dev/YYYYMM.mbox/%3CMessage-ID%3E
>> I hacked a script that parses a message from stdin to generate the
>> corresponding URL, [...]
>>
>> Best of course would be if the mailing list software would insert
>> a header X-Archive-URL before distributing the message that could be
>> copied to the clipboard.
>
> Link to the mail-archive.com archives can be created in a similar
> manner - hash the id&  the list-post address (the libreoffice org
> lists (the ones managed by TDF, so not the dev-list that is run by
> freedesktop.org make use of that)
> sample code to compute the link:
> http://www.mail-archive.com/faq.html#listserver
>
> example from your post
> msg-id 20110712204457.GC25752@ulungele.erack.de
> list-address ooo-dev@incubator.apache.org
> resulting hash-link:
> http://go.mail-archive.com/-hoB_qRELeVC89tPxbrUdp5fd_U=
>
> ciao
> Christian

Re: Script to generate mail archive URL from message

Posted by Christian Lohmaier <cl...@openoffice.org>.
Hi Eike, *,

On Tue, Jul 12, 2011 at 10:44 PM, Eike Rathke <oo...@erack.de> wrote:
>
> Seen that every message to the mailing list can be retrieved from the
> archive using an URL of the form
> http://mail-archives.apache.org/mod_mbox/incubator-ooo-dev/YYYYMM.mbox/%3CMessage-ID%3E
> I hacked a script that parses a message from stdin to generate the
> corresponding URL, [...]
>
> Best of course would be if the mailing list software would insert
> a header X-Archive-URL before distributing the message that could be
> copied to the clipboard.

Link to the mail-archive.com archives can be created in a similar
manner - hash the id & the list-post address (the libreoffice org
lists (the ones managed by TDF, so not the dev-list that is run by
freedesktop.org make use of that)
sample code to compute the link:
http://www.mail-archive.com/faq.html#listserver

example from your post
msg-id 20110712204457.GC25752@ulungele.erack.de
list-address ooo-dev@incubator.apache.org
resulting hash-link:
http://go.mail-archive.com/-hoB_qRELeVC89tPxbrUdp5fd_U=

ciao
Christian

Re: Approaching the infrastructure team to add Archived-At headers (was: Script to generate mail archive URL from message)

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Email infrastructure@ or show up on #asfinfra IRC.

(I know that at least two members of root@ aren't even subscribed
to infrastructure-dev@...)

Eike Rathke wrote on Thu, Jul 14, 2011 at 16:22:20 +0200:
> Hi Daniel,
> 
> On Wednesday, 2011-07-13 01:13:26 +0300, Daniel Shahaf wrote:
> 
> > If you'd like to propose changes to the list software, approach the
> > Infrastructure team.  We use ezmlm.
> 
> Ok, "approach", does that mean to send a mail to the infrastructure-dev
> list, or file a JIRA issue, or...? I would propose to add the
> Archived-At header according to RFC 5064
> http://tools.ietf.org/html/rfc5064
> 
> Thanks
>   Eike
> 
> -- 
>  PGP/OpenPGP/GnuPG encrypted mail preferred in all private communication.
>  Key ID: 0x293C05FD - 997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD



Approaching the infrastructure team to add Archived-At headers (was: Script to generate mail archive URL from message)

Posted by Eike Rathke <oo...@erack.de>.
Hi Daniel,

On Wednesday, 2011-07-13 01:13:26 +0300, Daniel Shahaf wrote:

> If you'd like to propose changes to the list software, approach the
> Infrastructure team.  We use ezmlm.

Ok, "approach", does that mean to send a mail to the infrastructure-dev
list, or file a JIRA issue, or...? I would propose to add the
Archived-At header according to RFC 5064
http://tools.ietf.org/html/rfc5064

Thanks
  Eike

-- 
 PGP/OpenPGP/GnuPG encrypted mail preferred in all private communication.
 Key ID: 0x293C05FD - 997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD

Re: Script to generate mail archive URL from message

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
If you'd like to propose changes to the list software, approach the
Infrastructure team.  We use ezmlm.

Eike Rathke wrote on Tue, Jul 12, 2011 at 22:44:57 +0200:
> Hi,
> 
> Seen that every message to the mailing list can be retrieved from the
> archive using an URL of the form
> http://mail-archives.apache.org/mod_mbox/incubator-ooo-dev/YYYYMM.mbox/%3CMessage-ID%3E
> I hacked a script that parses a message from stdin to generate the
> corresponding URL, attached. In Mutt this can be invoked as pipe on
> a message with
> 
> |apache-mail-archive-url.pl
> 
> Using Thunderbird you probably have to save the raw message as file
> first unless there is an add-on to invoke arbitrary commands on
> a message.
> 
> Best of course would be if the mailing list software would insert
> a header X-Archive-URL before distributing the message that could be
> copied to the clipboard.
> 
>   Eike
> 
> -- 
>  PGP/OpenPGP/GnuPG encrypted mail preferred in all private communication.
>  Key ID: 0x293C05FD - 997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD