Roundcube Community Forum

SVN Releases => Issues & Bugs => Topic started by: nicolash on April 04, 2008, 05:00:09 AM

Title: multipart/alternative emails w/o text/html shown as a blank page
Post by: nicolash on April 04, 2008, 05:00:09 AM
Hi,

I'm using the latest SVN version as of today, but one of my users is complaining about the fact that some emails are never shown correctly in Roundcube.

I dig a little into the problem, it appears that when you have an email with "Content-Type: multipart/mixed;" and then inside a "Content-Type: multipart/alternative;" with only inside a "Content-Type: text/plain;" but not text/html associated, Roundcube only show a blank page.

Here is an example:
QuoteReturn-Path:
Delivered-To: xxxxxxxxx@xxxxxxxxxxxx.org
Received: from INT1 (11.11-11-11.xxx.xxxxxxx.com [22.22.22.22])
    by smtp-xxx.xx.xxxx.net (8.13.8/8.13.8/Debian-3) with SMTP id m31JTUqS014715
    for ; Tue, 1 Apr 2008 21:29:31 +0200
Message-ID: <123456789.123456789012345.JavaMail.cptservice@INT1>
Date: Tue, 1 Apr 2008 21:30:00 +0200 (CEST)
From: reminder@xxxxxxxxxxx.com
To: xxxxx@xxxxxx.fr
Subject: Rendez-vous CyberTeachers
MIME-Version: 1.0
Content-Type: multipart/mixed;
    boundary="----=_Part_137_6659511.1207078200536"
X-Mailer: Java

------=_Part_137_6659511.1207078200536
Content-Type: multipart/alternative;
    boundary="----=_Part_136_18623335.1207078200536"

------=_Part_136_18623335.1207078200536
MIME-Version: 1.0
Content-Type: text/plain;
    charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

Blabla bla bla bla bla bla blablabla blabla bla bla bla bla bla bla bbbla.

Blabla bla bla bla bla.

Blabla bla bla bla blabla bla bla.
------=_Part_136_18623335.1207078200536--

------=_Part_137_6659511.1207078200536--

If someone has any ideas ? It seems to be compliant with the MIME RFC, but I can't guarantee that 100%. What can I do as a workaround is to rewrite emails headers in order to suppress the "multipart/alternative" and keep only "text/plain", but I don't really want to alter emails I receive, unless people sending these emails really don't follow any RFC...

Thanks,
Nicolas
Title: multipart/alternative emails w/o text/html shown as a blank page
Post by: nicolash on May 04, 2008, 02:25:57 PM
I'm now using SVN revision 1353 and it's still the same.

It always show an empty body when I receive multipart/mixed message including a multipart/alternative with only a text/plain part inside.

Am I the only one experiencing this problem ?
Title: multipart/alternative emails w/o text/html shown as a blank page
Post by: roundcubeuser on June 03, 2008, 07:12:23 AM
No, same here. No solution yet. :(
Title: multipart/alternative emails w/o text/html shown as a blank page
Post by: JohnDoh on June 03, 2008, 07:51:30 AM
This is a known problem with the message parsing. See http://trac.roundcube.net/ticket/1484644

Please check the bug tracker before raising new bugs and also see http://trac.roundcube.net/wiki/Howto_ReportIssues
Title: multipart/alternative emails w/o text/html shown as a blank page
Post by: nicolash on June 06, 2008, 04:55:24 AM
This patch:
http://trac.roundcube.net/ticket/1484627
fix the problem.

Can we expect to see it be part of the svn version?