Changeset 62 in subversion for trunk/roundcubemail/program/lib/imap.inc
- Timestamp:
- Oct 26, 2005 6:12:36 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/roundcubemail/program/lib/imap.inc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/lib/imap.inc
r57 r62 1221 1221 $lines[$i] = trim(chop($line)); 1222 1222 } 1223 }while($line[0]!=")" );1223 }while($line[0]!=")" && strncmp($line, $key, strlen($key))); // patch from "Maksim Rubis" <siburny@hotmail.com> 1224 1224 1225 if(strncmp($line, $key, strlen($key))) 1226 { 1225 1227 //process header, fill iilBasicHeader obj. 1226 1228 // initialize … … 1257 1259 else $messageID = "mid:".$id; 1258 1260 $result[$id]->messageID = $messageID; 1261 } 1262 else { 1263 $a=explode(" ", $line); 1264 } 1259 1265 1260 1266 } … … 1372 1378 if (empty($flag)) $flag="ASC"; 1373 1379 $flag=strtoupper($flag); 1380 $stripArr = ($field=='subject') ? array('Re: ','Fwd: ','Fw: ',"\"") : array("\""); 1374 1381 1375 1382 $c=count($a); … … 1387 1394 while (list($key, $val)=each($a)){ 1388 1395 $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)); 1390 1397 $index[$key]=$data; 1391 1398 }
Note: See TracChangeset
for help on using the changeset viewer.
