Changeset 62 in subversion for trunk/roundcubemail/program/lib/imap.inc


Ignore:
Timestamp:
Oct 26, 2005 6:12:36 PM (8 years ago)
Author:
roundcube
Message:

Finished message sorting and fixed some skin issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/lib/imap.inc

    r57 r62  
    12211221                                        $lines[$i] = trim(chop($line)); 
    12221222                                } 
    1223                         }while($line[0]!=")"); 
     1223                        }while($line[0]!=")" && strncmp($line, $key, strlen($key)));  // patch from "Maksim Rubis" <siburny@hotmail.com> 
    12241224                         
     1225            if(strncmp($line, $key, strlen($key))) 
     1226            {  
    12251227                        //process header, fill iilBasicHeader obj. 
    12261228                        //      initialize 
     
    12571259                        else $messageID = "mid:".$id; 
    12581260                        $result[$id]->messageID = $messageID; 
     1261                        } 
     1262            else { 
     1263            $a=explode(" ", $line); 
     1264            }  
    12591265                         
    12601266                } 
     
    13721378        if (empty($flag)) $flag="ASC"; 
    13731379        $flag=strtoupper($flag); 
     1380        $stripArr = ($field=='subject') ? array('Re: ','Fwd: ','Fw: ',"\"") : array("\""); 
    13741381         
    13751382        $c=count($a); 
     
    13871394                while (list($key, $val)=each($a)){ 
    13881395                        $data=$a[$key]->$field; 
    1389                         if (is_string($data)) $data=strtoupper(str_replace("\"", "", $data)); 
     1396                        if (is_string($data)) $data=strtoupper(str_replace($stripArr, "", $data)); 
    13901397                        $index[$key]=$data; 
    13911398                } 
Note: See TracChangeset for help on using the changeset viewer.