Author Topic: multipart/alternative emails w/o text/html shown as a blank page  (Read 8158 times)

Offline nicolash

  • Newbie
  • *
  • Posts: 7
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:
Quote
Return-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

Offline nicolash

  • Newbie
  • *
  • Posts: 7
multipart/alternative emails w/o text/html shown as a blank page
« Reply #1 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 ?

Offline roundcubeuser

  • Newbie
  • *
  • Posts: 2
multipart/alternative emails w/o text/html shown as a blank page
« Reply #2 on: June 03, 2008, 07:12:23 AM »
No, same here. No solution yet. :(

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
multipart/alternative emails w/o text/html shown as a blank page
« Reply #3 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
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦

Offline nicolash

  • Newbie
  • *
  • Posts: 7
multipart/alternative emails w/o text/html shown as a blank page
« Reply #4 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?