Author Topic: Email body not displaying  (Read 8952 times)

Offline bshephard

  • Newbie
  • *
  • Posts: 2
Email body not displaying
« on: March 19, 2009, 09:04:45 PM »
Just wondered if anyone can help me. I've set up RoundCube and it's working nicely except for one thing. Email sent from my work webmail system doesn't display the message body in RoundCube. The body is there when I look in the message source and I don't know of any other mail clients with issues displaying emails from there. I'm using the latest version of RoundCube as I only installed a few hours ago but it's not the first time I've installed as I've been using RoundCube since December but I've only just noticed this issue. I've tried sending email from hotmail, gmail, and I've managed to get flickr and a few other places including these forums to send me some emails all of which display perfectly.

I'll paste the message source of one of the problem messages below but take out all the real domain names so I don't get spammed

If anyone can help shed any light on this it would be greatly appreciated

Kind Regards
Ben Shephard

Return-Path:
X-Original-To: ben@home.com
Delivered-To: ben@home.com
Received: from work.uk.com (mail.work.uk.com [62.6.171.198])
   by home.com (Postfix) with ESMTP id 1602B34
   for ; Thu, 19 Mar 2009 20:35:28 +0000 (GMT)
Received: by work.uk.com (Efinity, from userid 0)
   id F160266972; Thu, 19 Mar 2009 20:35:05 +0000 (GMT)
Received: from polo (polo.local [172.16.0.100])
   by work.uk.com (Efinity) with ESMTP id B405466972
   for ; Thu, 19 Mar 2009 20:35:05 +0000 (GMT)
Message-ID: <1202071bbb7.7448968695422390269.10446983474387864@work.uk.com>
Date: Thu, 19 Mar 2009 20:35:05 +0000
From: Ben Shephard
To: ben@home.com
Subject: test
Mime-Version: 1.0
Content-Type: multipart/alternative;
   boundary="----=_Part_2865_19994257.1237494905783"
User-Agent: ZohoVO 3.0
X-Mailer: ZohoVO
Status: RO
X-Message: Scanned for viruses by Omnis http://www.omnisserver.com/

------=_Part_2865_19994257.1237494905783
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

this is an email to ben to test if I can read this text

------=_Part_2865_19994257.1237494905783
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

=
head>this is an email to ben to test if I can read this text


------=_Part_2865_19994257.1237494905783--

Offline emillme2

  • Newbie
  • *
  • Posts: 4
Email body not displaying
« Reply #1 on: March 19, 2009, 09:22:47 PM »
I am guessing that you are experiencing the same thing that we are ( http://www.roundcubeforum.net/pending-issues/4458-http-500-error-html-emails.html ). It has to do with roundcube php not processing html messages properly.

One solution is to go under user preferences and uncheck "Display HTML Message" but I am hoping that someone else can help out with a fix for my setup and the origonal poster's setup cause a lot of people are switching over to webmail based messaging and html is a vital part in retaining formating, etc within the message  itself.

This is a real sticker for me and I would really like to get this working and put it up on a production server but its driving me nuts. I have spent days looking into this and can't seem to get anywhere with it.

Best of Luck!

Offline bshephard

  • Newbie
  • *
  • Posts: 2
Email body not displaying
« Reply #2 on: March 20, 2009, 09:09:24 PM »
Thanks your fix kinda worked. It's not really the same issue your experiencing but it could be related. I'm not getting any HTTP 500 errors or anything like that. The message body is just blank unless I uncheck the display HTML button as you advised. I'm pretty sure my problem is not an issue with the PHP DOM module as some seem to think on your thread as this was one of my first thoughts so I used the installer that checks all the dependencies and it came back saying that was OK. I've also got no errors in my error log file apart from authentication errors.

My work web mail client allows me to choose from text/HTML, HTML and plain text and also the character encoding (default utf-8 but also tried with us-ascii). It seems no matter how I send a message there is always several parts to the source message one of which is always HTML like the following. Perhaps this is bad behaviour on the part of the webmail client we use at work and It's Roundcube that just doesn't handle this as other mail clients do for what ever reason.

This one was sent in plain text and appears blank with the view HTML button checked

Code: [Select]
------=_Part_2951_10798660.1237594148977
Content-Type: text/plain; charset=&quot;UTF-8&quot;
Content-Transfer-Encoding: quoted-printable

test

------=_Part_2951_10798660.1237594148977
Content-Type: text/html; charset=&quot;UTF-8&quot;
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;><html><head>=
<xmeta content=3D&quot;text/html;charset=3DUTF-8&quot; http-equiv=3D&quot;Content-Type&quot;></=
head><xbody >test</xbody></html>

------=_Part_2951_10798660.1237594148977--


This next message was sent as HTML only and also appears blank as above

Code: [Select]
------=_Part_2956_32090005.1237594319399
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

testing again

------=_Part_2956_32090005.1237594319399
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

=
head>testing again


------=_Part_2956_32090005.1237594319399--


Both message are displayed if I unchek the Diaplay HTML box in settings

I've had other plain text and HTML email in today from various sources and they all display fine in either plain or HTML. I can provide the source to some of those but the HTML ones are pretty long so I don't want to post it unless anyone wants to see them.
Looking at a plain text message (a backup status email from the server) that's just the headers and the message and none of the ---=_Part_12345 blah blah business that I get out of my work mail client (which is based on Zoho but I believe this was modified in some way to suit the companies needs).

I do notice that if I uncheck the view HTML button when I view the problem messages I get an attachment paperclip between the header and message that says "HTML message" by the side of it. This opens up another  window and displays the message in HTML which is of course blank again.

Thanks for your help. I'm pretty happy with that fix as my system only has four users so it's no big deal to tick / untick the box but as you say this would be a bit of problem in a large scale production environment.

Thanks Again
Ben

Offline Tonyrc

  • Jr. Member
  • **
  • Posts: 29
Some of my messages are blank too - I'm on 0.2.stable.
« Reply #3 on: April 13, 2009, 12:39:30 PM »
A few of my incoming messages have a BLANK message body as mentioned above. Today I have 31 messages and just 1 of them is blank! Viewing the header tells me nothing and changing to NON HTML does nothing as well. If I let my windows PC receive the emails the message body is there no problem. So this problem is with my RC install not from the sender of the message. Any assistance appreciated.

Offline jjhunt

  • Jr. Member
  • **
  • Posts: 27
Email body not displaying
« Reply #4 on: April 14, 2009, 12:41:23 PM »
We are seeing that problem as well.  Our setup is:
Fedora 10
roundcube v0.2.1
php 5.2.6
httpd 2.2.10

Turning off "Display HTML" has worked.  I can post a message that illustrates the problem if that would be helpful.  Does anyone know the status of this issue?

Thanks,
Jackie

Offline stardotstar

  • Newbie
  • *
  • Posts: 2
Email body not displaying
« Reply #5 on: April 20, 2009, 12:04:31 AM »
I too have blank message body - only in some emails I receive - I have tried turning the HTML option off but this does not fix the problem;

an interesting adjunct to my particular instance of this is that when I click reply I can see the message body as a quote!

Following this and researching.

Will