Mail message is shown with empty body #2435
Comments
Comment by @alecpl on 28 Sep 2009 09:27 UTC Works for me, so we need more info. What IMAP server and BODYSTRUCTURE response? |
Owner changed by @alecpl on 28 Sep 2009 09:27 UTC => none |
Milestone changed by @alecpl on 28 Sep 2009 09:27 UTC later => 0.3.1 |
Comment by gardiol on 28 Sep 2009 09:31 UTC IMAP server is qmail(?), how do i check the other? The problem sometimes shows up like this:
Not always, only sometimes. Seems to happen more often if i use the roundcube html editor. |
Comment by @alecpl on 28 Sep 2009 09:35 UTC So, we need the all messages source. To check BODYSTRUCTURE you'll need to enable imap_debug option. This will create logs/imap file. |
Comment by gardiol on 28 Sep 2009 09:59 UTC Replying to alec:
First of all, i try to upload another email message that does not show up, its part of the same thread. I have not saved the rest of the thread, only the last two messages. When i noticed the problem i had already deleted the older messages. Attached is also the log from imap_debug relative to when i openend the attached email. |
Comment by @alecpl on 28 Sep 2009 10:04 UTC email2.eml also works for me. The trace is not complete. We need trace from opening the message, maybe it's cached, enable devel_mode option. |
Comment by gardiol on 28 Sep 2009 12:19 UTC I have added the extended trace with devel_mode set to true in config/main.php.inc |
Comment by @alecpl on 28 Sep 2009 12:32 UTC Replying to gardiol:
|
Comment by robert penz on 28 Sep 2009 13:10 UTC I'm running courier as imap server and have the same problem. I've root access on the server and did take a look at the mail file on the server. I copied the file also to an other user, same problem. Here is the file directly from the server, if I remove the empty line after "X-OriginalArrivalTime:" every works!
|
Comment by @alecpl on 28 Sep 2009 13:17 UTC Robert, your message is another story. It's not proper MIME mail, so probably your server is unable to response with proper BODYSTRUCTURE. Check this as stated in comments to this ticket. |
Comment by robert penz on 28 Sep 2009 19:37 UTC @alec: Everything worked with roundcube 0.2 for month, as soon as I did an upgrade to 0.3 it stopped for some mails. Nothing has been changed on the imap server part or the MTA. |
Comment by gardiol on 1 Oct 2009 08:05 UTC Replying to atd: This is getting more and more annoying, now it happens to all the threads i exchange with hotmail people: i write them -> OK Even this is a hotmail problem, any other email client i use (horde, kmail) shows the body with no problem, so i believe it should be fixed anyway. I will try something, them post back here. |
Comment by gardiol on 1 Oct 2009 08:50 UTC I confirm, this happens ONLY after Hotmail replyes to a message that roundcube has sent after receiving it from Hotmail... I tryied to study a bit the RC sources but i got stuck. I do not know enough of PHP/AJAX to understand the mess... sorry i cannot do much more myself! |
Comment by gardiol on 1 Oct 2009 09:05 UTC Ok, anybody can check and confirm this bug. Just open up a hotmail account and send back and forth an email... Also, a "broken" email shows up like this in horde, while it shows up blank in RC:
As you can see, the message is really broken, BUT RC should show it anyway, even broken. |
Comment by @alecpl on 1 Oct 2009 10:19 UTC The message is broken, but Dovecot is able to return proper BODYSTRUCTURE. So it's hotmail's but also your IMAP server issue. Currently Roundcube relies on BODYSTRUCTURE reply. There are tickets in trac to handle raw messages if BODYSTRUCTURE is broken. We need to see what is bodystructure for those messages (there's no such info in attached debug listings). |
Status changed by @alecpl on 1 Oct 2009 10:19 UTC new => closed |
Comment by cpanelphil on 8 Oct 2009 18:05 UTC See attachment roundcubemail-0.3-stable.cpanel.patch above. In rcube_message.php, if the call to $this->imap->get_structure returns false, it treats the rest of the message as a raw body. This mimics the behavior of other mail clients that are at least showing a munged message. I am detecting a specific pattern of NILs in the return of the BODYSTRUCTURE call (see the example in the comment in the patch). Is there a more robust way to detect this? |
Comment by @alecpl on 8 Oct 2009 18:22 UTC Some servers returns different "bogus bodystructure". That's my proposition (from current rcube_imap.php):
|
Comment by gardiol on 9 Oct 2009 06:25 UTC I can confirm that both patches works properly with my malformed hotmail messages. The second one looks better tough, seems more general. Thank you people! |
Comment by robert penz on 10 Oct 2009 06:32 UTC where do I need to insert the second patch? can someone make a diff for it also? thx. |
Comment by atd on 13 Oct 2009 09:48 UTC I also tried to apply it but didn't know how to |
Comment by @alecpl on 13 Oct 2009 09:50 UTC Here's a complete patch http://trac.roundcube.net/changeset/3034 |
Hello, I'm facing exactly the same issue with only 1 sender. Until recently, his messages were showing. But since last Thursday, their body looks empty: though I can see the body and read it within the source code If the message is forwarded to Outlook, we can read it: http://i.imgur.com/PyLxCYU.jpg If I read it on my iPhone, the same issue happens: http://i.imgur.com/tdHwVbh.jpg. Thanks in advance for your help. Best regards, |
Reported by gardiol on 28 Sep 2009 08:52 UTC as Trac ticket #1486175
Please refer to this thread:
http://www.roundcubeforum.net/pending-issues/5439-blank-empty-message-body-see-email-source-inside.html#post21806
for detailed description including example of not-working email.
This bug is serius. Reported by three users so far. Any(!) other mail client shows the incriminated message.
This happens with both 0.3 and trunk (23 sept 2009).
Keywords: blank body empty message
Migrated-From: http://trac.roundcube.net/ticket/1486175
The text was updated successfully, but these errors were encountered: