View Issue Details

IDProjectCategoryView StatusLast Update
0005702SOGoWeb Mailpublic2024-02-26 09:10
Reporterdragoangel Assigned Tosebastien  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
PlatformanyOSanyOS Versionany
Product Version5.8.0 
Fixed in Version5.11.0 
Summary0005702: koi8-u not correctly displayed in html while work in plain text
Description

Please see attached eml file as example that can be attached to the draft and then viewed via SOGo.
Plaintext part will be displayed correctly, while HTML part - messed up.

TagsNo tags attached.

Activities

dragoangel

dragoangel

2023-02-25 23:42

reporter  

Перевірка української мови.eml.txt (2,002 bytes)   
Return-Path: <example.org@outlook.com>
Delivered-To: admin@example.org
Received: from mail.example.org ([172.22.1.253])
	by ce2a2fb4910c with LMTP
	id 6Iv1BLxn+mNgGwQAArjF9w
	(envelope-from <example.org@outlook.com>)
	for <admin@example.org>; Sat, 25 Feb 2023 21:55:40 +0200
From: "example.org@outlook.com" <example.org@outlook.com>
To: "admin@example.org" <admin@example.org>
Subject: =?koi8-u?B?8MXSxdem0svBINXL0sGnztPYy8+nIM3P18k=?=
Thread-Topic: =?koi8-u?B?8MXSxdem0svBINXL0sGnztPYy8+nIM3P18k=?=
Thread-Index: AQHZSVK/GzjCGA676EyFxe3eFQAg4g==
Date: Sat, 25 Feb 2023 19:55:21 +0000
Message-ID:
 <AS1P195MB15698DB5F53C3CF076ABC199C3A99@AS1P195MB1569.EURP195.PROD.OUTLOOK.COM>
Content-Type: multipart/alternative;
	boundary="_000_AS1P195MB15698DB5F53C3CF076ABC199C3A99AS1P195MB1569EURP_"
MIME-Version: 1.0


--_000_AS1P195MB15698DB5F53C3CF076ABC199C3A99AS1P195MB1569EURP_
Content-Type: text/html; charset="koi8-u"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dkoi8-u">
</head>
<body>
<div style=3D"color: rgb(33, 33, 33); background-color: rgb(255, 255, 255);=
" dir=3D"auto">
=E3=C5 =D0=C5=D2=C5=D7=A6=D2=CB=C1 =D5=CB=D2=C1=A7=CE=D3=D8=CB=CF=A7 =CD=CF=
=D7=C9 =D0=D2=C9 =CE=C1=C4=D3=C9=CC=C1=CE=CE=A6 =D0=CF=D7=A6=C4=CF=CD=CC=C5=
=CE=CE=D1 =DE=C5=D2=C5=DA =D0=CF=DB=D4=D5 =C1=D5=D4=CC=D5=CB.</div>
<div style=3D"color: rgb(33, 33, 33); background-color: rgb(255, 255, 255);=
" dir=3D"auto">
=FE=C1=D3=D4=CF =D0=CF=DB=D4=C1 =D7=A6=C4=CF=C2=D2=C1=D6=C1=A4=D4=D8=D3=D1 =
=CE=C5=CB=CF=D2=C5=CB=D4=CE=CF =CE=C1 =D5=CB=D2=C1=A7=CE=D3=D8=CB=A6=CA =CD=
=CF=D7=A6, =CB=CF=CC=C9 =D0=CF=D7=A6=C4=CF=CD=CC=C5=CE=CE=D1 =CE=C1=C4=C8=
=CF=C4=D1=D4=D8 =DA =C1=D5=D4=CC=D5=CB.</div>
<div id=3D"ms-outlook-mobile-signature" dir=3D"auto">
<div><br>
</div>
=EF=D4=D2=C9=CD=C1=CA=D4=C5 <a href=3D"https://aka.ms/AAb9ysg">Outlook =C4=
=CC=D1 Android</a></div>
</body>
</html>

--_000_AS1P195MB15698DB5F53C3CF076ABC199C3A99AS1P195MB1569EURP_--
dragoangel

dragoangel

2023-02-25 23:46

reporter   ~0016691

I copied the version without plaintext the first time, sorry.

Перевірка української мови.eml-2.txt (2,720 bytes)   
Return-Path: <example.org@outlook.com>
Delivered-To: admin@example.org
Received: from mail.example.org ([172.22.1.253])
	by ce2a2fb4910c with LMTP
	id 6Iv1BLxn+mNgGwQAArjF9w
	(envelope-from <example.org@outlook.com>)
	for <admin@example.org>; Sat, 25 Feb 2023 21:55:40 +0200
From: "example.org@outlook.com" <example.org@outlook.com>
To: "admin@example.org" <admin@example.org>
Subject: =?koi8-u?B?8MXSxdem0svBINXL0sGnztPYy8+nIM3P18k=?=
Thread-Topic: =?koi8-u?B?8MXSxdem0svBINXL0sGnztPYy8+nIM3P18k=?=
Thread-Index: AQHZSVK/GzjCGA676EyFxe3eFQAg4g==
Date: Sat, 25 Feb 2023 19:55:21 +0000
Message-ID:
 <AS1P195MB15698DB5F53C3CF076ABC199C3A99@AS1P195MB1569.EURP195.PROD.OUTLOOK.COM>
Content-Type: multipart/alternative;
	boundary="_000_AS1P195MB15698DB5F53C3CF076ABC199C3A99AS1P195MB1569EURP_"
MIME-Version: 1.0


--_000_AS1P195MB15698DB5F53C3CF076ABC199C3A99AS1P195MB1569EURP_
Content-Type: text/plain; charset="koi8-u"
Content-Transfer-Encoding: quoted-printable

=E3=C5 =D0=C5=D2=C5=D7=A6=D2=CB=C1 =D5=CB=D2=C1=A7=CE=D3=D8=CB=CF=A7 =CD=CF=
=D7=C9 =D0=D2=C9 =CE=C1=C4=D3=C9=CC=C1=CE=CE=A6 =D0=CF=D7=A6=C4=CF=CD=CC=C5=
=CE=CE=D1 =DE=C5=D2=C5=DA =D0=CF=DB=D4=D5 =C1=D5=D4=CC=D5=CB.
=FE=C1=D3=D4=CF =D0=CF=DB=D4=C1 =D7=A6=C4=CF=C2=D2=C1=D6=C1=A4=D4=D8=D3=D1 =
=CE=C5=CB=CF=D2=C5=CB=D4=CE=CF =CE=C1 =D5=CB=D2=C1=A7=CE=D3=D8=CB=A6=CA =CD=
=CF=D7=A6, =CB=CF=CC=C9 =D0=CF=D7=A6=C4=CF=CD=CC=C5=CE=CE=D1 =CE=C1=C4=C8=
=CF=C4=D1=D4=D8 =DA =C1=D5=D4=CC=D5=CB.

=EF=D4=D2=C9=CD=C1=CA=D4=C5 Outlook =C4=CC=D1 Android<https://aka.ms/AAb9ys=
g>

--_000_AS1P195MB15698DB5F53C3CF076ABC199C3A99AS1P195MB1569EURP_
Content-Type: text/html; charset="koi8-u"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dkoi8-u">
</head>
<body>
<div style=3D"color: rgb(33, 33, 33); background-color: rgb(255, 255, 255);=
" dir=3D"auto">
=E3=C5 =D0=C5=D2=C5=D7=A6=D2=CB=C1 =D5=CB=D2=C1=A7=CE=D3=D8=CB=CF=A7 =CD=CF=
=D7=C9 =D0=D2=C9 =CE=C1=C4=D3=C9=CC=C1=CE=CE=A6 =D0=CF=D7=A6=C4=CF=CD=CC=C5=
=CE=CE=D1 =DE=C5=D2=C5=DA =D0=CF=DB=D4=D5 =C1=D5=D4=CC=D5=CB.</div>
<div style=3D"color: rgb(33, 33, 33); background-color: rgb(255, 255, 255);=
" dir=3D"auto">
=FE=C1=D3=D4=CF =D0=CF=DB=D4=C1 =D7=A6=C4=CF=C2=D2=C1=D6=C1=A4=D4=D8=D3=D1 =
=CE=C5=CB=CF=D2=C5=CB=D4=CE=CF =CE=C1 =D5=CB=D2=C1=A7=CE=D3=D8=CB=A6=CA =CD=
=CF=D7=A6, =CB=CF=CC=C9 =D0=CF=D7=A6=C4=CF=CD=CC=C5=CE=CE=D1 =CE=C1=C4=C8=
=CF=C4=D1=D4=D8 =DA =C1=D5=D4=CC=D5=CB.</div>
<div id=3D"ms-outlook-mobile-signature" dir=3D"auto">
<div><br>
</div>
=EF=D4=D2=C9=CD=C1=CA=D4=C5 <a href=3D"https://aka.ms/AAb9ysg">Outlook =C4=
=CC=D1 Android</a></div>
</body>
</html>

--_000_AS1P195MB15698DB5F53C3CF076ABC199C3A99AS1P195MB1569EURP_--
AndreyEver

AndreyEver

2023-03-02 17:50

reporter   ~0016712

check you eml file, it looks corrupted.
...
<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dkoi8-u">
</head>
<body>
...

"3D" is something unexpected I belive

dragoangel

dragoangel

2023-03-02 17:51

reporter   ~0016713

No, it's just escaping of quotes, you can save this on your PC and try open in Thunderbird for example or send it anywhere else, e.g.: gmail

AndreyEver

AndreyEver

2023-03-02 18:14

reporter   ~0016714

Right. I see your paint.
Seems SoGo webmail parser get confused. Mail client like Thunderbird displays either text/plain part or text/html but SoGo webmail always displays both

Screenshot_7.png (86,719 bytes)   
Screenshot_7.png (86,719 bytes)   
dragoangel

dragoangel

2023-03-02 19:25

reporter   ~0016715

The fact that plain and HTML are both displayed isn't an issue.
The problem that HTML part using wrong encoding to display message.

jam

jam

2024-02-25 19:37

reporter   ~0017594

I also noticed some encoding errors with the display of HTML mails in the WebUI. Text only mails are displayed fine.
I'm pretty sure they popped up after updating from 5.9.0 to 5.9.1.
The errors are also shown for very old mails, so it's doesn't seem to be a delivery/storage issue.

At first I thought I messed up some configuration, but this bug made me think otherwise.
The mails I'm experiencing that with are not in koi8-u, but utf-8 or iso8859-1.

&lt;meta http-equiv=3D&quot;Content-Type&quot; content=3D&quot;text/html; charset=3Diso-8859-1&quot;>
&lt;meta http-equiv=3D&quot;Content-Type&quot; content=3D&quot;text/html; charset=3Dutf-8&quot;>
sebastien

sebastien

2024-02-26 09:04

administrator   ~0017597

Last edited: 2024-02-26 09:10

Fixed in https://github.com/Alinto/sogo/commit/776a798e173e6bacc29c8ab3d32bddabd383da55.

Please test SOGo nightly 20240227.

Sebastien

Issue History

Date Modified Username Field Change
2023-02-25 23:42 dragoangel New Issue
2023-02-25 23:42 dragoangel File Added: Перевірка української мови.eml.txt
2023-02-25 23:46 dragoangel Note Added: 0016691
2023-02-25 23:46 dragoangel File Added: Перевірка української мови.eml-2.txt
2023-03-02 17:50 AndreyEver Note Added: 0016712
2023-03-02 17:51 dragoangel Note Added: 0016713
2023-03-02 18:14 AndreyEver Note Added: 0016714
2023-03-02 18:14 AndreyEver File Added: Screenshot_7.png
2023-03-02 19:25 dragoangel Note Added: 0016715
2024-01-22 15:17 sebastien Assigned To => sebastien
2024-01-22 15:17 sebastien Status new => assigned
2024-02-25 19:37 jam Note Added: 0017594
2024-02-26 09:04 sebastien Note Added: 0017597
2024-02-26 09:04 sebastien Status assigned => resolved
2024-02-26 09:04 sebastien Resolution open => fixed
2024-02-26 09:04 sebastien Fixed in Version => 5.11.0
2024-02-26 09:10 sebastien Note Edited: 0017597