Re: [PATCH] Disambiguate mbox download files

From: "Kevin Rocker" <me(at)kevinrocker(dot)com>
To: "Magnus Hagander" <magnus(at)hagander(dot)net>
Cc: pgsql-www(at)lists(dot)postgresql(dot)org
Subject: Re: [PATCH] Disambiguate mbox download files
Date: 2026-07-31 14:51:43
Message-ID: ab098339-c032-4b8e-8cf4-da799d95a45c@app.fastmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-www

Makes sense to me. The per-thread path already had a good filename, but was missing the file extension, so more benefits than just consistency.

On Wed, Jul 22, 2026, at 3:50 PM, Magnus Hagander wrote:
>
>
> On Thu, 25 Jun 2026 at 16:13, Kevin <me(at)kevinrocker(dot)com> wrote:
>> __
>> The mailing list monthly archives were all downloading with the same filename, just "psql-hackers.mbox", which turned into "psql-hackers(1).mbox", "psql-hackers(2).mbox", etc.
>>
>> This patch sets the `Content-Disposition` header to a filename that includes the list and the year/month.
>
> I like this idea and the patch looks good. However, is there a reason not to also do this for the other code path calling _build_mbox()? If nothing else, for consistency?
>
> --
> Magnus Hagander
> Me: https://www.hagander.net/
> Work: https://www.redpill-linpro.com/

Attachment Content-Type Size
0002-Serve-per-thread-mbox-downloads-with-an-explicit-fil.patch text/x-patch 896 bytes

In response to

Responses

Browse pgsql-www by date

  From Date Subject
Next Message Jonathan Gonzalez V. 2026-08-01 16:26:15 Re: Unable to login
Previous Message 陈天舟 2026-07-31 12:11:50 Re: Wiki editor request