[Kolab-devel] Kolab 2.3.1 / Horde: Does not display E-Mails

Gunnar Wrobel wrobel at horde.org
Mon May 16 14:16:10 CEST 2011


q
Zitat von Hermann Himmelbauer <hermann at qwer.tk>:

> Am 16.05.2011 04:17, schrieb Gunnar Wrobel:
>> Most likely. The function you are referring to is a rather generic
>> method though. It just encodes to JSON and obviously fails for because
>> it gets some unexpected input.
>>
>> You could either try to install xdebug
>> (http://wiki.kolab.org/PHP_debugging) which should give you a more
>> detailed stack trace of the warning. Or you try to add the following
>> code in line 85 of /kolab/var/kolab/www/client/imp/lib/JSON.php:
>>
>> if (!json_encode($var)) {
>>      Horde::logMessage(print_r($var, true), __FILE__, __LINE__,  
>> PEAR_LOG_ERR);
>> }
>>
>> This would most likely output the problematic variable to the log.
>>
>> Both types of output might help to identify where the problematic data
>> comes from. I would assume you created some kind of encoding problem
>> when copying data from the old to the new server.
> Thanks for your quick reply!
>
> Hmmm - I wonder why, maybe Thunderbird has some issues? Here is the
> output when enabling debugging via these 3 lines above:
>
> ----------------- snip ----------------
> May 16 08:44:12 HORDE [error] [imp] stdClass Object
> (
> [response] => stdClass Object
> (
> [folder] => INBOX/ZZZArchiv/Computer
> [index] => 26
> [uid] => 26INBOX/ZZZArchiv/Computer
> [msgtext] => <tr><td><table class="mimePartInfo"><tr
> valign="middle"><td><img
> src="/client/themes/silver/graphics/mime/encryption.png" alt=""
> title="multipart/signed" /></td>
> <td>1</td>
> <td><a href="#"
> onclick="view('/client/imp/view.php?popup_view=1&mailbox=INBOX&index=26&thismailbox=INBOX%2FZZZArchiv%2FComputer&actionID=view_attach&id=1&mimecache=7b1e4a22ae70e413528bb4b362b38f35',
> '1'); return false;" title="View unnamed
> [multipart/signed]">unnamed</a></td>
> <td><a
> href="/client/services/download/?module=imp&thismailbox=INBOX%2FZZZArchiv%2FComputer&mailbox=INBOX&index=26&actionID=download_attach&id=1&mimecache=7b1e4a22ae70e413528bb4b362b38f35&fn=%2Funnamed"
> class="download" title="Download unnamed">1 KB</a></td>
> </tr>
> </table></td></tr><tr><td class="text"><table
> class="mimeStatusMessage"><tr><td class="mimeStatusIcon"><img
> src="/client/themes/silver/graphics/mime/encryption.png" alt="PGP"
> title="" height="16" width="16" /></td><td>The message below has been
> digitally signed with PGP, but the signature cannot be verified.</td></tr>
> </table><table cellspacing="0"><tr><td class="text"><div class="fixed
> leftAlign">
> On Tuesday 14 October 2008 Manfred Petz wrote:<br />
> <div class="citation quoted1">kennt jemand von euch ein
> plattform-unabhaengiges uml tool? anforderung<br />
> ist, es soll unter windows & linux laufen und es soll moeglichst<br />
> kostenguenstig sein.<br />
> </div>
> Wie w�r's mit ArgoUML: <a href="http://argouml.tigris.org/"
> target="_blank">http://argouml.tigris.org/</a><br />
> <br />
> hth,<br />
> - martin
> </div></td></tr></table></td></tr><tr><td><table
> class="mimePartInfo"><tr valign="middle"><td><img
> src="/client/themes/silver/graphics/mime/text.png" alt=""
> title="text/plain" /></td>
> <td>1.1</td>
> <td><a href="#"
> onclick="view('/client/imp/view.php?popup_view=1&mailbox=INBOX&index=26&thismailbox=INBOX%2FZZZArchiv%2FComputer&actionID=view_attach&id=1.1&mimecache=7b1e4a22ae70e413528bb4b362b38f35',
> '1.1'); return false;" title="View unnamed [text/plain]">unnamed</a></td>
> <td><a
> href="/client/services/download/?module=imp&thismailbox=INBOX%2FZZZArchiv%2FComputer&mailbox=INBOX&index=26&actionID=download_attach&id=1.1&mimecache=7b1e4a22ae70e413528bb4b362b38f35&fn=%2Funnamed"
> class="download" title="Download unnamed">0 KB</a></td>
> </tr>
> </table></td></tr><tr><td><table class="mimePartInfo"><tr
> valign="middle"><td><img
> src="/client/themes/silver/graphics/mime/text.png" alt=""
> title="text/plain" /></td>
> <td>2</td>
> <td><a href="#"
> onclick="view('/client/imp/view.php?popup_view=1&mailbox=INBOX&index=26&thismailbox=INBOX%2FZZZArchiv%2FComputer&actionID=view_attach&id=2&mimecache=7b1e4a22ae70e413528bb4b362b38f35',
> '2'); return false;" title="View unnamed [text/plain]">unnamed</a></td>
> <td><a
> href="/client/services/download/?module=imp&thismailbox=INBOX%2FZZZArchiv%2FComputer&mailbox=INBOX&index=26&actionID=download_attach&id=2&mimecache=7b1e4a22ae70e413528bb4b362b38f35&fn=%2Funnamed"
> class="download" title="Download unnamed">0 KB</a></td>
> </tr>
> </table></td></tr><tr><td class="text"><div class="fixed leftAlign">
> _______________________________________________<br />
> lll mailing list<br />
> <a href="#" title="New Message to lll at radawana.cg.tuwien.ac.at"
> onclick="void(window.open('/client/dimp/compose.php?to=lll%2540radawana.cg.tuwien.ac.at&type=new&popup=1',
> '',
> 'width=820,height=610,status=1,scrollbars=yes,resizable=yes'));;return
> false;">lll at radawana.cg.tuwien.ac.at</a><br />
> <a href="https://radawana.cg.tuwien.ac.at/mailman/listinfo/lll"
> target="_blank">https://radawana.cg.tuwien.ac.at/mailman/listinfo/lll</a>
> </div></td></tr>
> [from] => <a class="address" personal="Martin H�ller"
> email="martin at xss.co.at" address="Martin H�ller
> <martin at xss.co.at>">Martin H�ller <martin at xss.co.at><img
> src="/client/dimp/themes/silver/graphics/popdown.png" alt="" title="" /></a>
> [fulldate] => Wed, 15 Oct 2008 08:57:20 +0200 <small>[10/15/08 08:57:20
> CEST]</small>
> [to] => <a class="address" personal=""
> email="lll at radawana.cg.tuwien.ac.at"
> address="lll at radawana.cg.tuwien.ac.at">lll at radawana.cg.tuwien.ac.at<img
> src="/client/dimp/themes/silver/graphics/popdown.png" alt="" title="" /></a>
> [subject] => Re: [lll] UML tool?
> [priority] => normal
> [source_link] =>
> /client/imp/view.php?mailbox=INBOX&index=26&thismailbox=INBOX%2FZZZArchiv%2FComputer&actionID=view_source&id=0&mimecache=7b1e4a22ae70e413528bb4b362b38f35
> [minidate] => 10/15/08
> )
>
> )
> [pid 8048 on line 87 of "/kolab/var/kolab/www/client/imp/lib/JSON.php"]
> ----------------------------- snip ------------------------------
>
> It seems that there's a wrong encoding involved. And I found out that
> the problem happens most often with english mails, whereas german mails
> (with umlauts) cannot be displayed - so that seems to be the reason.
>
> However, I wonder why the mails are displayed without any problems when
> double-clicking on the email so that a new window pops up.
>
> I found the following:
> http://groups.google.com/group/mailing.www.horde-bugs/browse_thread/thread/a9591041b537423b
> http://bugs.horde.org/ticket/9529
>
> So perhaps this is a known issue and is fixed in a later Horde version?

The issue you referenced affected Horde Git master which refers to the  
newer Horde 4 code. I do assume you are still on Horde 3.

And since you mentioned that you only see the problem on mail you  
copied over from an old server I'm pretty certain the problem  
originates from the server side. Horde could do a better job catching  
the problem but in principle the error indicates that the mails are  
broken and should get fixed.

Cheers,

Gunnar

>
> Best Regards,
> Hermann
>
> --
> hermann at qwer.tk
> GPG key ID: 299893C7 (on keyservers)
> FP: 0124 2584 8809 EF2A DBF9  4902 64B4 D16B 2998 93C7
>
> _______________________________________________
> Kolab-devel mailing list
> Kolab-devel at kolab.org
> https://kolab.org/mailman/listinfo/kolab-devel

-- 
Core Developer
The Horde Project

e: wrobel at horde.org
t: +49 700 6245 0000
w: http://www.horde.org

pgp: 9703 43BE
tweets: http://twitter.com/pardus_de
blog: http://log.pardus.de





More information about the devel mailing list