[Tickets #7792] DIMP fails to render the IMAP folder list when subfolders exist

bugs at horde.org bugs at horde.org
Sat Dec 20 10:45:16 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/7792
------------------------------------------------------------------------------
  Ticket             | 7792
  Created By         | gunnar.beutner at hetzner.de
  Summary            | DIMP fails to render the IMAP folder list when
                     | subfolders exist
  Queue              | DIMP
  Version            | 1.1
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              | 1
  Owners             |
+New Attachment     | dimp-subfolder-fix.patch
------------------------------------------------------------------------------


gunnar.beutner at hetzner.de (2008-12-20 05:45) wrote:

When rendering the folder list in DIMP the following HTML code is generated:

<li ftype="folder" mbox="INBOX.Foldername" l="Foldername"  
id="fldINBOX.Foldername" class="folder">
	<div id="fldINBOX.Foldername_div" class="exp">
	</div>

	<a title="Foldername" id="fldINBOX.Foldername_label">Foldername</a>
</li>

<li style="display: none;" id="subfldINBOX.Foldername" class="subfolders">
	<ul>
	[...]
	</ul>
</li>

Later on DIMP tries to find the <ul>-tag in order to add subfolders.  
However - using certain browsers like Google Chrome and Safari - the  
code that is responsible for finding the <ul>-tag returns 'undefined'  
which causes the entire folder list to not be shown at all (the  
"Loading..." <div> is shown instead):

DimpBase.js, line 1574:
parent_e = (parent_e) ? parent_e.down('UL') : $('normalfolders');

parent_e is set, however parent_e.down('UL') returns undefined.

Changing the function that is responsible for the id names of the HTML  
tags so that dots in the folder names are replaced with underscores  
appears to solve this problem.






More information about the bugs mailing list