Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wprc4-001tCa-2x for pgsql-www@arkaria.postgresql.org; Fri, 31 Jul 2026 18:05:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wprc3-00H0Xm-2y for pgsql-www@arkaria.postgresql.org; Fri, 31 Jul 2026 18:05:39 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wpoan-00GR1K-0z for pgsql-www@lists.postgresql.org; Fri, 31 Jul 2026 14:52:10 +0000 Received: from fhigh-b6-smtp.messagingengine.com ([202.12.124.157]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wpoal-00000001GRQ-0J3Q for pgsql-www@lists.postgresql.org; Fri, 31 Jul 2026 14:52:08 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id C8BAD7A00D0; Fri, 31 Jul 2026 10:52:05 -0400 (EDT) Received: from phl-imap-04 ([10.202.2.82]) by phl-compute-04.internal (MEProxy); Fri, 31 Jul 2026 10:52:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kevinrocker.com; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm2; t=1785509525; x= 1785595925; bh=kxkG3eorJDYlLg4R8PzrrBy0vCZWLxGuCp5pWnLNm2Q=; b=m v8FzO3JgKGIvnOMYCSZesD5444WQJ3Q0uq2pBd9EoV4YTwexI8XZGEFyE/VO2beT 8xW4rSKgACYJ3E8UHXKdWwV8ylsInRD/CQISd2+2cyXf34HWRDZT/RLrprZ4Oex2 m63Mcs+BlaVAsAF6fl4ZvZAjdfBWUAVyuIVY2fS6ow1tm+PocKqkgxA1Fdk+imjo 7hOQlR6Qb5Viaorhl6YO7zeCsmDVldrouh1t0Du8C1WcPOhE1zF20U8Zu33fvQqi uo8zFv0jH6WpdWD9GJ0TR27sq5JHvc40PAxor7upDML6uRciip6ossQEuHUbLJjw Q7Z1fs/qENpEq5VQBs88Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1785509525; x=1785595925; bh=kxkG3eorJDYlLg4R8PzrrBy0vCZWLxGuCp5 pWnLNm2Q=; b=N4pkCn/1kt366pJJ/W0vgAaK0rOki6WH8DHCYz0wA/T36BkUlE7 iUWfoN/Zyb0pqzmgsDForZ6IWYr9UrmvIkChHJmLy0B0Vo56T2nnwhfNO5ID65KO iG9wH9ik2/ksqXiqOGBEiAHefgqfJYbitiGZNbTmDZSEJzzE7fcUmCF5jqY3bfxT dbVQBnjmFPvV+nWnUf0oqdQimAetOgGfLPkrez4S+wkO/uSc8Yj4sVWSTNXOt5Kk Q/oIk3HS8Tao+/3oMXbUZBJNhZC0leSs0jUmYcS0nnZBCcLn5byNU5aM5AXr+Q+i JF6IVWR1cRu6+YMP6/w+YQnj49Jenl4j5Kw== X-ME-Sender: X-ME-Proxy-Cause: dmFkZTGXr5NBu/lmWZcq3vPMAM5ADiyMb3hD0ajf1yDgEGTXvWwhFctZfK5aun014ySyNw 3wB5tpmYEIs0K228nbD0vCMjA4Kku+N83zHe3klc6YqTe33oLHk9mK/NFqx7SxDemBBLpy gJGvMcH9LXGvDrULr0TtTktTDoGQIEss0lvgw5xGEUC5HApxLa5BosZCPna4oN4j6Ogcdf or5ujZKgoQShw8AHUeYw0ggm+DD71FS3NhqX9pw4+rXkCBjqW+nEg5AifbvddUOiregD+T EXVnVwE+swBg80w9QMnzeoe7INmDpQeXoL71p2ccTtrgdgdV8Rfhhb/sEgJRqciXQjm6Ku kjrykednpv0EcsBqtNzCLEDdQWml2irMXcDq/TmmpbZYJy9MGLTi+0ixHQ8HRfASULSqwD mMt1B7v+XBECaoAC8+J/Z3LKrJiGqckafxYqh8po+uwkFoMxxirhpgMPZFWCS2TNML3j/H 9nCUrLU7HAi6ww6iwlzgY0s22Fuy2yl8C9tUrfJD9gPWgUl0n1dN7EVhk3fBFzc52V0mzI BFVLRT+euVVhZHgef+sQDhvDMQBd8ulspjFNTaPfhVSuk+2i8oOCBvjNvqUfxNeW9Dga9x n7nZwO6BW4sTEAHi6P2IDly3Tm2BrpfDKhi5XlBMxDK3SdZvmxC/tTyA+Jmw X-ME-Proxy: Feedback-ID: i6fde480c:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id F22F8B60F89; Fri, 31 Jul 2026 10:52:04 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 X-ThreadId: Ay2zo4AlLB0w Date: Fri, 31 Jul 2026 16:51:43 +0200 From: "Kevin Rocker" To: "Magnus Hagander" Cc: pgsql-www@lists.postgresql.org Message-Id: In-Reply-To: References: <88954350-a993-4f2e-8cc6-c7274237b1b8@app.fastmail.com> Subject: Re: [PATCH] Disambiguate mbox download files Content-Type: multipart/mixed; boundary=534cc2bd97bda1607b36030e5e6ebd891ccb4be8 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --534cc2bd97bda1607b36030e5e6ebd891ccb4be8 Content-Type: multipart/alternative; boundary=117d92a6839d368834b49199c2071fd242025512 --117d92a6839d368834b49199c2071fd242025512 Content-Type: text/plain Content-Transfer-Encoding: 7bit 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 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/ --117d92a6839d368834b49199c2071fd242025512 Content-Type: text/html Content-Transfer-Encoding: quoted-printable
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@ke= vinrocker.com> wrote:

The ma= iling list monthly archives were all downloading with the same filename,= just "psql-hackers.mbox", which turned into "psql-hackers(1).mbox", "ps= ql-hackers(2).mbox", etc.

This patch sets the `= Content-Disposition` header to a filename that includes the list and the= year/month.

I like th= is 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: <= a href=3D"http://www.hagander.net/" target=3D"_blank">https://www.hagand= er.net/

--117d92a6839d368834b49199c2071fd242025512-- --534cc2bd97bda1607b36030e5e6ebd891ccb4be8 Content-Disposition: attachment; filename*0="0002-Serve-per-thread-mbox-downloads-with-an-explicit-fil.pat"; filename*1="ch" Content-Type: text/x-patch; name="=?UTF-8?Q?0002-Serve-per-thread-mbox-downloads-with-an-explicit-fil.patc?= =?UTF-8?Q?h?=" Content-Transfer-Encoding: base64 RnJvbSA2OGI2MWY0NzQyYmIwMzk3MWFkNDNjODYzNTVhMGRjNTJiNGZhNzhhIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBLZXZpbiBSb2NrZXIgPG1lQGtldml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