-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi R.,
On Monday, January 16, 2006, R. wrote:
> Hello.
> In conf.pl General Options I have the choice of
> 10. Allow server thread sort : true
> 11. Allow server-side sorting : true
> what is the difference between these two settings?
server-side sorting makes the IMAP server do the sorting based on
criteria we provide. Server side thread allows the server to build a
thread for us. Depending on your IMAP server, that might be by
subject, or references (a header combination of In-Reply-To and
References), or both. If you look at the headers for this email, you
should see a References header which allows the IMAP server to build a
thread of messages like a tree.
> The problem is, when I have a big mailbox with f.e. 50000 mails and I
> choose "Threaded View" my apache runs amok. I takes 5 minutes with 98
> Percent CPU to perform this task.
Youch... your IMAP server has to read all 50,000 emails and read the
headers to build the thread for us. That's a bit of a task on its
own. This ultimately ends up generating a load of data (see [1] for
details).
> I would whish that I could enter a threshold in conf.pl for the
> number of mails do disable threaded view. So that when a mailbox has
> f.e. more than 5000 mails threaded sorting disables by default.
You could edit the code, and set a date criteria on the threading
code. You could do something like this:
functions/imap_messages.php [Line 332]
$date = date('r', strtotime('-1 week'));
$query = 'THREAD ' . $sort_type . strtoupper($default_charset) . $date;
You might need to play around with the code as I've just skimmed on
this, but that should make it only display emails that are a week old
in a threaded format. You can alter $date to be anything that is
defined in RFC3501 in the SEARCH section (See [2]).
[1]: http://www.jwz.org/doc/draft-ietf-imapext-thread-12.txt
[2]: http://www.faqs.org/rfcs/rfc3501.html
- --
Jonathan Angliss
<[EMAIL PROTECTED]>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
iD8DBQFDzCwrK4PoFPj9H3MRAhzEAJwNT6HN52BhENnMH/fKzKts/eNzngCfQiex
vjboifx4FQ8l9AsRAdfvrN0=
=z13+
-----END PGP SIGNATURE-----
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
--
squirrelmail-users mailing list
Posting Guidelines:
http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: [email protected]
List Archives:
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users