Re: archive not showing all attachements

From: "Jonathan S(dot) Katz" <jkatz(at)postgresql(dot)org>
To: Andres Freund <andres(at)anarazel(dot)de>, pgsql-www(at)postgresql(dot)org
Cc: Kyotaro HORIGUCHI <horiguchi(dot)kyotaro(at)lab(dot)ntt(dot)co(dot)jp>
Subject: Re: archive not showing all attachements
Date: 2022-03-24 20:18:09
Message-ID: cab7baed-47ae-bfbd-8096-2a5671991381@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-www

On 3/24/22 3:24 PM, Andres Freund wrote:
> Hi,
>
> In a recent email Horiguchi-san attached an incremental patch as .txt,
> presumably to avoid confusing cfbot. I just noticed that the archives don't
> offer a download link:
> https://www.postgresql.org/message-id/20220323.163833.1929400812667041796.horikyota.ntt%40gmail.com
>
> but in my mail reader it's perfectly visible.
>
> I don't know if it's caused by the file ending or Horiguchi-san's email client
> using text/Plain rather than text/plain. As far as I understand mime types are
> supposed to be case insensitive, so text/Plain is perfectly correct, albeit a
> little unusual.

I ran into a similar issue while using Mac mail, where attached patches
wouldn't post to the archives. I switched to Thunderbird solely for
posting to the mailing lists.

That said, that may be a thread worth pulling. It looks like we do
case-sensitivity checking on the MIME type based on the
"get_content_type" docs[1][2].

If you have the raw message, it may be good to manually run through the
code and see what's happening in the the "recursive_get_attachments" to
see root cause and potentially fix this.

(I don't have access to the server side directly, so I can't test it. I
may be able to parse it from the mbox, which in that case, I'll try this
out later).

Jonathan

[1]
https://git.postgresql.org/gitweb/?p=pgarchives.git;a=blob;f=loader/lib/parser.py;hb=HEAD#l257
[2]
https://docs.python.org/3/library/email.message.html#email.message.EmailMessage.get_content_type

In response to

Responses

Browse pgsql-www by date

  From Date Subject
Next Message Magnus Hagander 2022-03-26 17:41:39 Re: archive not showing all attachements
Previous Message Andres Freund 2022-03-24 19:24:21 archive not showing all attachements