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 1vdaQP-002UaA-0K for pgsql-www@arkaria.postgresql.org; Wed, 07 Jan 2026 20:46:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vdaQM-00FSc8-0s for pgsql-www@arkaria.postgresql.org; Wed, 07 Jan 2026 20:46:35 +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 1vdaQM-00FSc0-0E for pgsql-www@lists.postgresql.org; Wed, 07 Jan 2026 20:46:34 +0000 Received: from mail-yw1-x1131.google.com ([2607:f8b0:4864:20::1131]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vdaQK-00591z-1L for pgsql-www@lists.postgresql.org; Wed, 07 Jan 2026 20:46:34 +0000 Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-790884840baso28509677b3.0 for ; Wed, 07 Jan 2026 12:46:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hagander.net; s=mail; t=1767818791; x=1768423591; 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=k3y8aSs5JXl4cUHycYOIZ0qYEfATMvgE5SDsy5elsUw=; b=QRMARdmzHwBnqKVPRoUKS6VCsSY/cIlTn02n1GzPMG+fqxSsbSHvsM6gvUCRsGm1p6 ftc0J4pJmhEEiV3IcHCHWf3LKk4dC5Abh8jAgtSdXZUcJZ5PDYC73ONCuaGthdU58QdF L6lSvZLrRxmzWgPkka6Bl07BT6OXYpPCR3rW3KQr0wfYYhKTOHijQmVFc8COiLgyZ+Gc vVDHwg+Dahp/BXuQQD7n+DxjM5atQgbu8Uav4MQd4n5vWXc2U5IraHiTzme9EZpjIG1N LCO7/dsgNbcsDiRZYaTcuKQVBtLt9hCc6cDzj7AIm8XyCue8AaUv1anrRZEIk/2UHgns zGkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767818791; x=1768423591; 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=k3y8aSs5JXl4cUHycYOIZ0qYEfATMvgE5SDsy5elsUw=; b=ohQhJdS2ViH3A1UFAVzupDKIhBYMKNyfsJdznpEEvQ0p9hWgb6aO47Sj7JkNO+Z2Zr MwYfrab17dmcjGQqhJEuRrSb+QBNOeXniI+WrBCZ6lF9N0axZ+EcFRYrx00lQCM5F9so dADwLCG/QwgflqRoCozoXG7/IIPekKZC5uOh06xtR3/EM9nf6ikrUblPiHEkrzH7TkBk igiPET14tOs63lisFqpyfR6DRN6Bsew8W9wzIcxAZ2u0jgQPfn5jKVLmBCXoIj5tp9e8 64wcsAPC6y0FI3879VqeYTrjtIpyFgrQbVcdtdZ+UubTYahL1s7arODjBZ2GEvBEkwZX XhPQ== X-Gm-Message-State: AOJu0Yw5RSRWiEPX3LfKaRAtwqlY3Bh4fbiAEzaL8ORFKh5HG0JEX4S5 k58ujS5s6eStWZ8W4n6RJHX+bpm8CcWECColu59SfGzqXyX1u2uAz1u2o0x29X+UAcq36vtEmlL nMnEvOX4bHHzP08LKAAe4KMVOec7HU09LJMModAKFxC2ie3tFOz4b2g== X-Gm-Gg: AY/fxX6nwOB8jcQ+UsTl7t7PH9vekw5IQPhOsH+l1iurrrUdC1ZYQ12h7mjWSOxTtK+ mtfEHslYcRKz8/Edrxf7VCSd9ChX4RDDG0A1TwfKCS5POw6VIFN840RIw/lXaGjWo2Oig3NtWfO TQ5VQex4rHoQB3cswnBlv3WxplylpRr2hMoN+97GQBZKCuLALVlrvqVR9Lmqzti/zg0dg4Xc01U bFHpL1+HrXnS+ayfBzVD8M/qi9djPmGVrLsoLrEO34z+lAbAyudd55JrxUShOekbdLGpXptxfAi uiUbXctXoRfkWsRId9KwBLcr+xAV4e6imE7KKQ== X-Google-Smtp-Source: AGHT+IFN6RzjQPdAxrNsimlIp1N3SfaMNk6crlCRSFziJCXrL23x0EH9LMtBoxzxWdeuQ9zcMTRHAfoy985x5T+rlJg= X-Received: by 2002:a05:690e:130d:b0:641:f5bc:6961 with SMTP id 956f58d0204a3-64716c52c6bmr3366496d50.77.1767818791155; Wed, 07 Jan 2026 12:46:31 -0800 (PST) MIME-Version: 1.0 References: <99A6E7C8-1634-4162-96FD-D5AC404ADBCF@gmx.net> In-Reply-To: <99A6E7C8-1634-4162-96FD-D5AC404ADBCF@gmx.net> From: Magnus Hagander Date: Wed, 7 Jan 2026 21:46:18 +0100 X-Gm-Features: AQt7F2oSAXIjOCy5chn8TmeKIlaABZKCkLM69JCxN0iilOLfgzj95O-IsBw4KPk Message-ID: Subject: Re: Images in news mails To: Tobias Bussmann Cc: pgsql-www@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000001306a70647d2633a" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000001306a70647d2633a Content-Type: text/plain; charset="UTF-8" On Thu, 4 Sept 2025 at 21:49, Tobias Bussmann wrote: > Ever since HTML emails were introduced for project news in around 2020, I > have wondered why, on my system (macOS using Apple Mail as the MUA), emails > were sometimes displayed in a distorted way. Today, I took the time to > track it down. Apple Mail ignores the size if the image source is provided > inline via CID and not referenced externally [2, footnote 3]. As a > workaround, the width can be specified again in the 'style' tag, as I have > done in the attached patch. > > Another issue is that the Slonik logo is displayed again at the end of the > email. In contrast to the first issue, this affects the Mail app on iOS as > well. My analysis suggests that this is caused by the MIME structure of the > email: > - multipart/mixed > - multipart/alternative > - text/plain > - text/html > - image/png with Content-Disposition: inline > > This issue is resolved if I change the structure to the following: > - multipart/alternative > - text/plain > - multipart/related > - text/html > - image/png with Content-Disposition: inline > > Wow, this was a lot of fun. Not. I have changed the code to restructure like this and it mostly works. It now breaks in the gmail app on android when connected to our company emulated-exchange interface. But it fixes apple mail. I think there are a lot more apple mail out there, so I think it's a strict improvement :) Thanks for the diagnosing work! I hope this does properly fix it! //Magnus --0000000000001306a70647d2633a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Thu, 4 Sept 2025 at 21:49, Tobias Bussmann <t.bussmann@gmx.net>= wrote:
Ever sin= ce HTML emails were introduced for project news in around 2020, I have wond= ered why, on my system (macOS using Apple Mail as the MUA), emails were som= etimes displayed in a distorted way. Today, I took the time to track it dow= n. Apple Mail ignores the size if the image source is provided inline via C= ID and not referenced externally [2, footnote 3]. As a workaround, the widt= h can be specified again in the 'style' tag, as I have done in the = attached patch.

Another issue is that the Slonik logo is displayed again at the end of the = email. In contrast to the first issue, this affects the Mail app on iOS as = well. My analysis suggests that this is caused by the MIME structure of the= email:
- multipart/mixed
=C2=A0 - multipart/alternative
=C2=A0 =C2=A0 - text/plain
=C2=A0 =C2=A0 - text/html
=C2=A0 - image/png with Content-Disposition: inline

This issue is resolved if I change the structure to the following:
- multipart/alternative
=C2=A0 - text/plain
=C2=A0 - multipart/related
=C2=A0 =C2=A0 - text/html
=C2=A0 =C2=A0 - image/png with Content-Disposition: inline


Wow, this was a lot of fun. Not.
=

I have changed the code to restructure like this and it= mostly works. It now breaks in the gmail app on android when connected to = our company emulated-exchange interface. But it fixes apple mail. I think t= here are a lot more apple mail out there, so I think it's a strict impr= ovement :)

Thanks for the diagnosing work! I hope = this does properly fix it!

//Magnus

=
--0000000000001306a70647d2633a--