Roundcube Community Forum

 

RC 1.2 - Corrupted e-mail headers while sending an html empty message

Started by sgironella, July 14, 2016, 04:49:14 AM

Previous topic - Next topic

sgironella

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):


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 <[email protected]>
To: [email protected]
Subject: prova messaggio vuoto
Organization: SC31
Message-ID: <[email protected]>
X-Sender: [email protected]
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):


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 <[email protected]>;
Thu, 14 Jul 2016 10:20:08 +0200 (CEST) (envelope-from [email protected])
MIME-Version: 1.0
Date: Thu, 14 Jul 2016 10:20:08 +0200
From: Utente di TEST <[email protected]>
To: [email protected]
Subject: prova messaggio vuoto
Organization: SC31
Message-ID: <[email protected]>
X-Sender: [email protected]
User-Agent: Roundcube Webmail/1.2.0
Return-Path: [email protected]
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):


--=_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?

onurf