Author Topic: RC 1.2 - Corrupted e-mail headers while sending an html empty message  (Read 3098 times)

Offline sgironella

  • Newbie
  • *
  • Posts: 1
Hi, I've noticed a strange behavior while sending an empty content e-mail when the html editor is enabled.

I'm using a fresh RC 1.2 install without additional plugins / custom config / etc.

In this example I'm using the same account for sending / receiving, but the issue occour even on different accounts.

This is the source of the sent e-mail (taken from 'sent' mailbox):

Code: [Select]
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="=_1ea5c0fb22f36989d6ced65aeb170c69"
Content-Transfer-Encoding: quoted-printable
Date: Thu, 14 Jul 2016 10:20:08 +0200
From: Utente di TEST <utente1@mail.qa.schema31.it>
To: utente1@mail.qa.schema31.it
Subject: prova messaggio vuoto
Organization: SC31
Message-ID: <0b60ebbd94d81e3726579e5c9d73f248@mail.qa.schema31.it>
X-Sender: utente1@mail.qa.schema31.it
User-Agent: Roundcube Webmail/1.2.0


--=_1ea5c0fb22f36989d6ced65aeb170c69
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII


--=_1ea5c0fb22f36989d6ced65aeb170c69
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=UTF-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=
=3DUTF-8" /></head><body style=3D'font-size: 10pt; font-family: Verdana,Gen=
eva,sans-serif'>

</body></html>

--=_1ea5c0fb22f36989d6ced65aeb170c69--

While that's what i receive (taken from 'inbox' mailbox):

Code: [Select]
Received: from 10.33.100.158 ([10.33.100.158])
by litio.roma.schema31.it (8.14.5/8.14.5) with ESMTP id u6E8K8U2025787
for <utente1@mail.qa.schema31.it>;
Thu, 14 Jul 2016 10:20:08 +0200 (CEST) (envelope-from utente1@mail.qa.schema31.it)
MIME-Version: 1.0
Date: Thu, 14 Jul 2016 10:20:08 +0200
From: Utente di TEST <utente1@mail.qa.schema31.it>
To: utente1@mail.qa.schema31.it
Subject: prova messaggio vuoto
Organization: SC31
Message-ID: <0b60ebbd94d81e3726579e5c9d73f248@mail.qa.schema31.it>
X-Sender: utente1@mail.qa.schema31.it
User-Agent: Roundcube Webmail/1.2.0
Return-Path: utente1@mail.qa.schema31.it
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

--=_b492bde5ebec2fd2cd9973a3683f42a9
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII


--=_b492bde5ebec2fd2cd9973a3683f42a9
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=UTF-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=
=3DUTF-8" /></head><body style=3D'font-size: 10pt; font-family: Verdana,Gen=
eva,sans-serif'>

</body></html>

--=_b492bde5ebec2fd2cd9973a3683f42a9--

As you can see, sending an html e-mail will lead to use a 'multipart' content-type to have both html and plain text contents, but the received e-mail has a different content-type (text/html) so it will be shown in this way (parts are treated as simple text):

Code: [Select]
--=_b492bde5ebec2fd2cd9973a3683f42a9 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII --=_b492bde5ebec2fd2cd9973a3683f42a9 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8
--=_b492bde5ebec2fd2cd9973a3683f42a9--

Any ideas?

Offline onurf

  • Newbie
  • *
  • Posts: 1
Re: RC 1.2 - Corrupted e-mail headers while sending an html empty message
« Reply #1 on: November 18, 2016, 04:43:31 PM »
I'm facing that problem too. Did you solve it?