Thanks for your concern.. I was expecting a little help on the ajax matter but I finally figured it out.....<br><br>I have finish my patch and now need people to test it (especially on large mailbox) and see if we find bugs:<br>
Have a look here <a href="http://creadev.net/Webmails-vTiger504">http://creadev.net/Webmails-vTiger504</a>, At the bottom of the page there is a compressed file to download, you just need to replace existing files from webmails module with those ones.<br>
You can also find on the web page install instructions and detailed step by step changes.<br><br>I published a forum post on vTiger <a href="http://forums.vtiger.com/viewtopic.php?p=66012#66012">http://forums.vtiger.com/viewtopic.php?p=66012#66012</a> and here <a href="http://creadev.net/forum/5">http://creadev.net/forum/5</a>.<br>
<br>Feedbacks appreciated ;)<br><br>Bye<br><br><div class="gmail_quote">On Fri, May 30, 2008 at 5:35 PM, Prasad &lt;<a href="mailto:prasad@vtiger.com">prasad@vtiger.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Clem,<br><br>Thank you for sharing some interesting pointers on the performance of Webmail. <br><br>We will watch it closely and continue the improvement.<br><br>Regards,<br><font color="#888888">Prasad<br>vtiger Team<br>
<br></font><div><div><div></div><div class="Wj3C7c"><span class="gmail_quote">On 5/29/08, <b class="gmail_sendername">clement chazarra</b> &lt;<a href="mailto:chazarra.clement@gmail.com" target="_blank">chazarra.clement@gmail.com</a>&gt; wrote:</span></div>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">
Sorry for the last incomplete email, I slip on the send button ;)<br><br>I have been searching and working on the webmail matter for some days and found a couple of quick tricks:<br><br>In Webmails, modify Listview.php line 317 and ListViewAjax.php line 121:<br>


<br><div style="margin-left: 40px;">$info = imap_mailboxmsginfo($MailBox-&gt;mbox);<br>$unread_msgs = $info-&gt;Unread;<br><br><b>Must be replaced by</b><br><br>$info = imap_status($MailBox-&gt;mbox, &quot;{&quot;.$MailBox-&gt;imapServerAddress.&quot;}&quot;.$key, SA_ALL);<br>


$unread_msgs = $info-&gt;unseen;<br></div><br>It should increase the performances significantly on large inbox.<br><br>I am also on the way to modify how email list is retrieved, so far so good, I have achieve to get the same delay (about 8 sec) to retrieve emails from inbox of 400 and inbox of 4000. To do so I only retrieve the mails from the page to be seen and not the whole list. For exemple if I have set my emails per page to 5, the webmail query will only retrieve 5 emails and not all of them.<br>


I could release those modifications but I am still missing a big bit concerning the search functionality:<br><br>The problem about search is that it will retrieve the whole search list without multiple pages, and if your search get more than 500 results for exemple, you will have to wait quite long. My idea was to do the search, as doing the normal list, with paging functionalitie. <br>


It may sounds simple but search is handled differently and enabling the multi page search is much bigger task than I expected.. <br><br>I believe that I am not far from getting the search working but I need a little help guys,<br>


When I input a keyword and press find, I can display my list of results and create the multi page buttons, but once I click on the next page button, the ajax list doesn&#39;t take in account that the search field is set.<br>


<br>More specificaly in listviewajax.php line 128:<br>if(isset($_REQUEST[&quot;search&quot;]) &amp;&amp; trim($_REQUEST[&quot;search_input&quot;]) != &#39;&#39;) { whatever }<br>The above condition doesn&#39;t see that a string is in the search field..<br>


<br>I have a couple of questions:<br><br>Why the same condition works from the listview and not in listviewajax? <br>I believe that the $_REQUEST[&quot;search&quot;] and $_REQUEST[&quot;search_input&quot;] are not set through the ajax.<br>


<br>How could I set and get thoses values when I am in the ajax form? Where to declare them?<br><br>I am not an ajax specialist, and I need a hint on how vtiger deal with passing variables between forms, ajax forms as _REQUEST.<br>


<br>If I can figure out the way to make my ajax form to retrieve the value of the search field when set, I may be able to release a nice patch quite soon ;) The hardest bit has been done, and what took me more than 60 sec to retrieve, now comes in 8 sec, depending of the number of mails per page.<br>


<br>I hope to get some reply guys, so I can release an alpha of the patch on monday.<br><br>Thanks for your concerns,<br>Clem <br><br><br>
<br></div></div><div class="Ih2E3d">_______________________________________________<br>
Reach hundreds of potential candidates - <a href="http://jobs.vtiger.com" target="_blank">http://jobs.vtiger.com</a> <br></div></blockquote></div><br>
<br>_______________________________________________<br>
Reach hundreds of potential candidates - <a href="http://jobs.vtiger.com" target="_blank">http://jobs.vtiger.com</a> <br></blockquote></div><br>