From 288bbce0dbcaab712f7ba7d754da931e7fe534fa Mon Sep 17 00:00:00 2001 From: jmunro Date: Fri, 12 Apr 2002 04:16:52 +0000 Subject: [PATCH] rewrote the function that determines message indent levels for thread sort. fixes problems with big threads and does a little fake threading when the message thread has been broken. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2710 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_messages.php | 86 ++++++++++++++++++++++--------------- 1 file changed, 51 insertions(+), 35 deletions(-) diff --git a/functions/imap_messages.php b/functions/imap_messages.php index 2ca805e6..48d8011c 100755 --- a/functions/imap_messages.php +++ b/functions/imap_messages.php @@ -152,6 +152,11 @@ function get_parent_level ($imap_stream) { global $sort_by_ref, $default_charset, $thread_new; $parent = ""; $child = ""; + $cutoff = 0; + + /* loop through the threads and take unwanted characters out + of the thread string then chop it up + */ for ($i=0;$i