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 1vQXxf-00Akek-0M for pgsql-www@arkaria.postgresql.org; Tue, 02 Dec 2025 21:31:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vQXxe-00A5Gv-0K for pgsql-www@arkaria.postgresql.org; Tue, 02 Dec 2025 21:31:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vQXxd-00A5Gn-2f for pgsql-www@lists.postgresql.org; Tue, 02 Dec 2025 21:31:02 +0000 Received: from mail-yw1-x1129.google.com ([2607:f8b0:4864:20::1129]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vQXxc-002nzN-09 for pgsql-www@lists.postgresql.org; Tue, 02 Dec 2025 21:31:01 +0000 Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-78a835353e4so67092697b3.2 for ; Tue, 02 Dec 2025 13:30:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hagander.net; s=mail; t=1764711058; x=1765315858; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=3UzR2Ndq6sK4KCpOMNvFM0bVWNdh9in/8cPfcAM68VQ=; b=h+dBlOLK+6/qwDyEYTimROHon+1qGM8xxp9fHhiNWk/qrn7HFOCk49DIR1uDRFSUQ/ lX37nYfO6oPs1rrUcUdjyECOIwz3IMSKpEEo03MSlKuo2oumcCsF2yeRG6eDhhNtyajA 6tkNKsz9jvH5wWTO/TT/uQKw4uSXIs91ZtZ6LFu/PF0m/ymZaQLBhJ73gAJ7gCA8WKMj 4IV4fKEXRugC4wV+6GaBDrHbYLUo82Id+UJ9flhmELG1Zv30cH9h7foTTredLqtbbYbS ul2b3vVYm0sggVIOtJe5FD3qed+gZVMs+jddKvnGmGiAxhMYHGrLxsbnqbFL3KaOSvfa La0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764711058; x=1765315858; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=3UzR2Ndq6sK4KCpOMNvFM0bVWNdh9in/8cPfcAM68VQ=; b=E50VwEk8j3qLx9G6k1Gg1buFjZ88zfDrJgBb2OO3hRIhNGJ6x8F2i4i6zvAms0+Av2 5by27w7Kzs51pZuw8oTQvhiWIDsNScgTCVBJS4UBZe1c0KbcXiFzctEwpHkJBbE4KsYB 3Iuqi+1X/nAiDsD8tiBvQaB4dBDtbvqF0NWPgut+l39971hO1ZrzDjTVpAQJimfwMME9 6tq0i8i1vHDVmxuWxPitIWkOhJHNo20GsC8kuerpQCrv/y3m6XGAA8WA7E8CJBmkkHOR 7O889A5rNeJSCehLRSXO1vKfX8qA6u4qWOOjVxPWb6otevzjUYlfug1Zbmj3esrSqmVd kCBw== X-Forwarded-Encrypted: i=1; AJvYcCWMYbGJASjsGdo3HgBFSvoRPg+RnDmuNVX0f5n4hcyUWDVtu1TX7XJl7cBqWKzw+iK7I9NcbznrSDY=@lists.postgresql.org X-Gm-Message-State: AOJu0YwSd9ebk5e/2Pzn/a5RCJRF0QmMqv6CcWdt7qOrSc7j68N+FIDu ghIpHYAhXhleXlCwZYPpp3GGdb+VFE662k2j+t4BJgncVKhvMIod4sw1BC7H+lTlqREw+FX1E5G sEmxasds3OEFJg9osgbR0IqMqGDBtzFWlIJez9Ugp X-Gm-Gg: ASbGncuzRH4HVqw1T6JT/OPAjZX1FAzsFb1hQPi7AshCyIeGsyTd7vbucaoz7TRhbdw 9Wab3pQETA5s9YBbwrPRGR00MKAfbYB/9rbDBWLewfahGKR2/nft0UzK6/8dDI7cqXa34P6FxIZ oqMRL0+FrRD6u7eg/CJB4B+mKFKKrbnFuVO45P5FrGQUEkZfUbLciopPFuJ2UkRM8ZPCnnhWPot qwcdHqzvJ25ADwhY2PQ5lA7b7sFRxdlE12YhphAkIo1DPdSC5wvATCaddvzxcSd68LkRYI= X-Google-Smtp-Source: AGHT+IFv7tggP5vYMBFDdsydN3U2RIL7BEuaCEGqM2YN/HfXv1jTFFZJ9JvzRWar0Ls8k/BMLTV1JLoO1jmKKgiKRqo= X-Received: by 2002:a05:690c:f82:b0:788:65:6dd4 with SMTP id 00721157ae682-78c0c030816mr142697b3.22.1764711058067; Tue, 02 Dec 2025 13:30:58 -0800 (PST) MIME-Version: 1.0 References: <99A6E7C8-1634-4162-96FD-D5AC404ADBCF@gmx.net> <29c71778-5871-4e4d-a80e-d67351c8eb4b@postgresql.org> <4C210077-20E5-415C-8A69-B82331A42B9A@gmx.net> In-Reply-To: From: Magnus Hagander Date: Tue, 2 Dec 2025 22:30:44 +0100 X-Gm-Features: AWmQ_bmHgf79Xvn97pgV7LVJrWuT9Jd4Va7j__1mRAEfXN1_cf6yLvjtAf5BgKs Message-ID: Subject: Re: Images in news mails To: Tobias Bussmann Cc: "Jonathan S. Katz" , pgsql-www@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000bf60300644fecf84" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000bf60300644fecf84 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 8 Sept 2025 at 10:50, Magnus Hagander wrote: > > > On Sun, Sep 7, 2025 at 6:16=E2=80=AFPM Tobias Bussmann wrote: > >> Am 05.09.2025 um 20:23 schrieb Jonathan S. Katz : >> > This has plagued me for years, and I'm so happy you tracked this down! >> >> I'm happy to hear, I'm not the only one seeing this. Glad to help! >> > > What's more amazing is that AFAIK this is the first time *anyone* has > reported this to be a problem. And it's been this way since 2020... > > It is also slightly ironic that it's apple mail that's seeing the problem= , > given it's quite overrepresented in *generating* broken attachments in > similar ways when you look in the archive :) > > > > The patch looks good; have you tested in a few other mail clients? I >> haven't had a chance to test yet. >> >> I haven't tried other mail clients myself, but as the style definition i= s >> just redundant to the img attributes, I wouldn't expect any regression b= y >> this. But HTML emails are full of miracles ;) >> > > Indeed it does. For example, you mentioned the possibility of embedding > the image instead of attaching - that *does* break multiple clients, I > think at least Outlook and maybe also gmail. > I have pushed the patch that adds the extra attributes now. Somehow I thought I had to review a more complex patch and.. Put it off :) >> Litmus.com has become quite expensive for render previews, so I looked >> for alternatives. I found Testi.at, which offers some free tests at leas= t. >> Unfortunately, I was unable to provide the full MIME structure there and >> thus could not simulate the CID-referenced image that causes the problem= in >> Apple Mail. When I experimented with an externally hosted image, the res= ult >> looked good in the provided previews. However, I visually identified >> another issue: Outlook does not seem to support the 'float' style attrib= ute >> [1 footnote 1]. In the v2 patch, I implemented a workaround to duplicate >> the 'float' style using an 'align' img attribute. Previews of the result= ing >> rendering can be found at [2]. >> >> > PGEU does have a subscription to a service that could be used for testing= . > We'd need to adapt the test instance of the website for it, but that's > fairly easy to do. > Been testing one with that. But in that service now *all* our emails are broken on *all* MUAs, so it's not really working... I've filed a bug with them, we will see if they can figure it out. --=20 Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/ --000000000000bf60300644fecf84 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, 8 Sept 2025 at 10:50, Magnus Haga= nder <magnus@hagander.net>= wrote:

=

= On Sun, Sep 7, 2025 at 6:16=E2=80=AFPM Tobias Bussmann <t.bussmann@gmx.net> wrote:
Am 05.09.2025 um = 20:23 schrieb Jonathan S. Katz <jkatz@postgresql.org>:
> This has plagued me for years, and I'm so happy you tracked this d= own!

I'm happy to hear, I'm not the only one seeing this. Glad to help!<= br>

What's more amazing is that AFAIK t= his is the first time *anyone* has reported this to be a problem. And it= 9;s been this way since 2020...

It is also slightl= y ironic that it's apple mail that's seeing the problem, given it&#= 39;s quite overrepresented in *generating* broken attachments in similar wa= ys when you look in the archive :)


> The patch looks good; have you tested in a few other mail clients? I h= aven't had a chance to test yet.

I haven't tried other mail clients myself, but as the style definition = is just redundant to the img attributes, I wouldn't expect any regressi= on by this. But HTML emails are full of miracles ;)
Indeed it does. For example, you mentioned the=C2=A0possibilit= y of embedding the image instead of attaching - that *does* break multiple = clients, I think at least Outlook and maybe also gmail.

I have pushed the patch that adds the extra = attributes now. Somehow I thought I had to review a more complex patch and.= . Put it off :)



Litmus.com has become quite expensive for render previews, so I looked for = alternatives. I found Testi.at, which offers some free tests at least. Unfo= rtunately, I was unable to provide the full MIME structure there and thus c= ould not simulate the CID-referenced image that causes the problem in Apple= Mail. When I experimented with an externally hosted image, the result look= ed good in the provided previews. However, I visually identified another is= sue: Outlook does not seem to support the 'float' style attribute [= 1 footnote 1]. In the v2 patch, I implemented a workaround to duplicate the= 'float' style using an 'align' img attribute. Previews of = the resulting rendering can be found at [2].


<= /div>
PGEU does have a subscription to a service that could be used for= testing. We'd need to adapt the test instance of the website for it, b= ut that's fairly easy to do.

Been testing one with that. But in that service now *all* our email= s are broken on *all* MUAs, so it's not really working... I've file= d a bug with them, we will see if they can figure it out.

--
=C2=A0Magnus Hagander=C2=A0Me: https://= www.hagander.net/
=C2=A0Work: https://www.redpill-linpro.com/
--000000000000bf60300644fecf84--