Open shepilov opened 8 months ago
The correct way to attach an image is to put it in a multipart/related
, Content-Disposition: inlime
and a CID for the display...
Which is what the front does by the way
Content-Type: multipart/related;
boundary="-=Part.3fe.a1c11c48ff399370.18e0ee3ff19.e1bb635b10dfdd23=-"
---=Part.3fe.a1c11c48ff399370.18e0ee3ff19.e1bb635b10dfdd23=-
Content-Type: multipart/alternative;
boundary="-=Part.3fd.df22f07a66b1f4f2.18e0ee3ff19.2e06ca340beba7e9=-"
---=Part.3fd.df22f07a66b1f4f2.18e0ee3ff19.2e06ca340beba7e9=-
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
[image]
--=C2=A0
Best regards,
Benoit TELLIER
General manager of Lina=
gora VIETNAM=2E
Product owner for Team-Mail product=2E
Chairman of the Apac=
he James project=2E
Mail: btellier@linagora=2Ecom
Tel: (0033) 6 77 26 04 5=
8 (WhatsApp, Signal)
---=Part.3fd.df22f07a66b1f4f2.18e0ee3ff19.2e06ca340beba7e9=-
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div><br></div><div><img src=3D"cid:bb576bf0-daf7-11ee-a89a-fb0a063480b7" a=
lt=3D"image" style=3D"max-width: 100%"></div><div><br><br><br></div><div cl=
ass=3D"tmail-signature" style=3D"display: block;"><span class=3D"tmail_sign=
ature_prefix">-- </span><br><br>Best regards,<br><br><b>Benoit TELLIER=
</b><br><br>General manager of <a href=3D"https://linagora=2Evn">Linagora V=
IETNAM</a>=2E<br>Product owner for <a href=3D"https://github=2Ecom/linagora=
/tmail-flutter">Team-Mail</a> product=2E<br>Chairman of the <a href=3D"http=
s://james=2Eapache=2Eorg/">Apache James project</a>=2E<br><br>Mail: <a href=
=3D"mailto:btellier@linagora=2Ecom">btellier@linagora=2Ecom</a><br>Tel: (00=
33) 6 77 26 04 58 (WhatsApp, Signal)<br><br><br></div>
---=Part.3fd.df22f07a66b1f4f2.18e0ee3ff19.2e06ca340beba7e9=---
---=Part.3fe.a1c11c48ff399370.18e0ee3ff19.e1bb635b10dfdd23=-
Content-Type: image/png; name="=?US-ASCII?Q?image.png?="
Content-Disposition: inline
Content-Transfer-Encoding: base64
Content-ID: bb576bf0-daf7-11ee-a89a-fb0a063480b7
iVBORw0KGgoAAAANSUhEUgAAAPgAAAIFCAYAAAD/QjDlAAAABHNCSVQICAgIfAhkiAAAABl0RVh0
U29mdHdhcmUAZ25vbWUtc2NyZWVuc2hvdO8Dvz4AAAA+aVRYdENyZWF0aW9uIFRpbWUAAAAAAFRo
4bupIGJhLCAwNSBUaMOhbmcgMyBOxINtIDIwMjQgMTQ6NTM6MTQgQ0VUZX9mEAAAIABJREFUeJzs
3XdYFNfCx/HvFtrSQTCIBcUuIiL2HltssRsTjZrcmHpjTPFVkxiJemNsMV6Nmhs1xpLYS6wIJEqM
oKIggl0sqEgvy7KwsDvvH8RRpGqw3L3n8zw+Dztz5uw5Z/Y3c2YWB4UkSRKCIPxXMZlMZGTnoLGy
KLec8gm1RxCEp0AEXBDMmAi4IJgxEXBBMGMi4IJgxkTABcGMiYALghkTARcEMyYCLghmTARcEMyY
CLggmDERcEEwYyLggmDGRMAFwYyJgAuCGRMBFwQzps7M0j7tNgiC8JAs1OpKlVPbamwec1MEQah6
EnkFBRWWUltYVO5IIAjCs8NkMlWqnLgGFwQzJgIuCGZMBFwQzJgIuCCYMRFwQTBjIuCCYMZEwAXB
jImAC4IZEwEXBDMmAi4IZkwEXBDMmAi4IJgxEXBBMGMi4IJgxkTABcGMiYALghkTARcEM/bUA37j
(I did this one by CTRL+C CTRL+V)
I triage with attachemnt in addition with inlined image:
Content-Type: multipart/mixed;
boundary="-=Part.402.f88b1c3b583d30be.18e0ee68e72.5fbfba7f12087dbb=-"
---=Part.402.f88b1c3b583d30be.18e0ee68e72.5fbfba7f12087dbb=-
Content-Type: multipart/related;
boundary="-=Part.401.fd6c434b29635baa.18e0ee68e71.7406931bbe131df0=-"
---=Part.401.fd6c434b29635baa.18e0ee68e71.7406931bbe131df0=-
Content-Type: multipart/alternative;
boundary="-=Part.400.fcf657229ce0aef2.18e0ee68e71.971869a2b325208f=-"
---=Part.400.fcf657229ce0aef2.18e0ee68e71.971869a2b325208f=-
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
[Screenshot from 2024-03-05 14-53-15]
--=C2=A0
Best regards,
Benoit TE=
LLIER
General manager of Linagora VIETNAM=2E
Product owner for Team-Mail p=
roduct=2E
Chairman of the Apache James project=2E
Mail: btellier@linagora=
=2Ecom
Tel: (0033) 6 77 26 04 58 (WhatsApp, Signal)
---=Part.400.fcf657229ce0aef2.18e0ee68e71.971869a2b325208f=-
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div><br></div><div><img src=3D"cid:1d4faed0-daf8-11ee-a89a-fb0a063480b7" a=
lt=3D"Screenshot from 2024-03-05 14-53-15" style=3D"max-width: 100%"></div>=
<div><br><br><br></div><div class=3D"tmail-signature" style=3D"display: blo=
ck;"><span class=3D"tmail_signature_prefix">-- </span><br><br>Best reg=
ards,<br><br><b>Benoit TELLIER</b><br><br>General manager of <a href=3D"htt=
ps://linagora=2Evn">Linagora VIETNAM</a>=2E<br>Product owner for <a href=3D=
"https://github=2Ecom/linagora/tmail-flutter">Team-Mail</a> product=2E<br>C=
hairman of the <a href=3D"https://james=2Eapache=2Eorg/">Apache James proje=
ct</a>=2E<br><br>Mail: <a href=3D"mailto:btellier@linagora=2Ecom">btellier@=
linagora=2Ecom</a><br>Tel: (0033) 6 77 26 04 58 (WhatsApp, Signal)<br><br><=
br></div>
---=Part.400.fcf657229ce0aef2.18e0ee68e71.971869a2b325208f=---
---=Part.401.fd6c434b29635baa.18e0ee68e71.7406931bbe131df0=-
Content-Type: image/png;
name="=?US-ASCII?Q?Screenshot_from_2024-03-05_14-53-15.png?="
Content-Disposition: inline
Content-Transfer-Encoding: base64
Content-ID: 1d4faed0-daf8-11ee-a89a-fb0a063480b7
iVBORw0KGgoAAAANSUhEUgAAAPgAAAIFCAYAAAD/QjDlAAAABHNCSVQICAgIfAhkiAAAABl0RVh0
U29mdHdhcmUAZ25vbWUtc2NyZWVuc2hvdO8Dvz4AAAA+aVRYdENyZWF0aW9uIFRpbWUAAAAAAFRo
4bupIGJhLCAwNSBUaMOhbmcgMyBOxINtIDIwMjQgMTQ6NTM6MTQgQ0VUZX9mEAAAIABJREFUeJzs
3XdYFNfCx/HvFtrSQTCIBcUuIiL2HltssRsTjZrcmHpjTPFVkxiJemNsMV6Nmhs1xpLYS6wIJEqM
oKIggl0sqEgvy7KwsDvvH8RRpGqw3L3n8zw+Dztz5uw5Z/Y3c2YWB4UkSRKCIPxXMZlMZGTnoLGy
mixed, relative and alternative multiparts: all good.
Is this specific to a MAC ?
@shepilov can you attach as .txt
the sources of the email please?
Description
When you insert an image in your email body with ctrl+c, it is inserted as base 64 URL, and not displayed in Apple Mail Meanwhile it's displayed in Twake Mail app
Expected result
The image displayed as well in Apple Mail
Current behavior
Reproduction Steps
Context
MacOS