Changeset 37 in subversion
- Timestamp:
- Oct 16, 2005 3:12:24 PM (8 years ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 1 added
- 6 edited
-
CHANGELOG (modified) (1 diff)
-
program/include/main.inc (modified) (1 diff)
-
program/include/rcube_imap.inc (modified) (3 diffs)
-
program/include/rcube_shared.inc (modified) (2 diffs)
-
program/js/app.js (modified) (6 diffs)
-
program/lib/imap.inc (modified) (2 diffs)
-
program/localization/index.inc (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r24 r37 43 43 - Show nested mailboxes hieracically 44 44 - Enable IMAPS by host 45 46 47 2005/15/16 48 ---------- 49 - Added Portuguese and Catalan translation 50 - Make SMTP auth method configurable 51 - Make mailboxlist scrollable (Bug #1326372) 52 -
trunk/roundcubemail/program/include/main.inc
r28 r37 423 423 } 424 424 425 426 // read directory program/localization/ and return a list of available languages 427 function rcube_list_languages() 428 { 429 global $CONFIG, $INSTALL_PATH; 430 static $sa_languages = array(); 431 432 if (!sizeof($sa_languages)) 433 { 434 @include_once($INSTLL_PATH.'program/localization/index.inc'); 435 436 if ($dh = @opendir($INSTLL_PATH.'program/localization')) 437 { 438 while (($name = readdir($dh)) !== false) 439 { 440 if ($name{0}=='.' || !is_dir($INSTLL_PATH.'program/localization/'.$name)) 441 continue; 442 443 if ($label = $rcube_languages[$name]) 444 $sa_languages[$name] = $label ? $label : $name; 445 } 446 closedir($dh); 447 } 448 } 449 450 return $sa_languages; 451 } 425 452 426 453 -
trunk/roundcubemail/program/include/rcube_imap.inc
r36 r37 269 269 $count = iil_C_CountMessages($this->conn, $mailbox); 270 270 271 // print "/**** get messagecount for $mailbox ($mode): $count ****/\n";271 // print "/**** get messagecount for $mailbox ($mode): $count ****/\n"; 272 272 273 273 if (is_array($a_mailbox_cache[$mailbox])) … … 313 313 $a_msg_headers = array(); 314 314 foreach ($a_header_index as $i => $headers) 315 if (!$headers->deleted)316 $a_msg_headers[$headers->uid] = $headers;315 if (!$headers->deleted) 316 $a_msg_headers[$headers->uid] = $headers; 317 317 318 318 // print "/**** fetch headers ****/\n"; … … 446 446 if ($this->caching_enabled && $result && ($a_cached_headers = $this->get_cache($cache_key))) 447 447 { 448 // close and re-open connection 448 // close and re-open connection 449 449 $this->reconnect(); 450 450 -
trunk/roundcubemail/program/include/rcube_shared.inc
r8 r37 1110 1110 $text = $a_text_item['single']; 1111 1111 1112 // perform utf-8 decoding 1113 //if (function_exists('utf8_decode')) 1114 // $text = utf8_decode($text); 1112 1115 1113 1116 // replace vars in text … … 1415 1418 1416 1419 1420 function abbrevate_string($str, $maxlength, $place_holder='...') 1421 { 1422 $length = strlen($str); 1423 $first_part_length = floor($maxlength/2) - strlen($place_holder); 1424 1425 if ($length > $maxlength) 1426 { 1427 $second_starting_location = $length - $maxlength + $first_part_length + 1; 1428 $str = substr($str, 0, $first_part_length) . $place_holder . substr($str, $second_starting_location, $length); 1429 } 1430 1431 return $str; 1432 } 1433 1434 1435 1417 1436 ?> -
trunk/roundcubemail/program/js/app.js
r28 r37 1 /*1 /* 2 2 +-----------------------------------------------------------------------+ 3 3 | RoundCube Webmail Client Script | … … 1007 1007 { 1008 1008 page = 1; 1009 add_url += '&_refresh=1'; 1009 1010 this.env.current_page = page; 1010 1011 this.clear_selection(); … … 1017 1018 if (this.gui_objects.messagelist) 1018 1019 { 1019 this.list_mailbox_remote(mbox, page );1020 this.list_mailbox_remote(mbox, page, add_url); 1020 1021 return; 1021 1022 } … … 1024 1025 { 1025 1026 target = window.frames[this.env.contentframe]; 1026 add_url = '&_framed=1';1027 add_url += '&_framed=1'; 1027 1028 } 1028 1029 … … 1037 1038 1038 1039 // send remote request to load message list 1039 this.list_mailbox_remote = function(mbox, page )1040 this.list_mailbox_remote = function(mbox, page, add_url) 1040 1041 { 1041 1042 // clear message list … … 1051 1052 var url = '_mbox='+escape(mbox)+(page ? '&_page='+page : ''); 1052 1053 this.set_busy(true, 'loading'); 1053 this.http_request('list', url );1054 this.http_request('list', url+add_url); 1054 1055 }; 1055 1056 -
trunk/roundcubemail/program/lib/imap.inc
r25 r37 326 326 327 327 //open socket connection 328 $conn->fp = @fsockopen($host, $ICL_PORT, &$errno, &$errstr, 10);328 $conn->fp = @fsockopen($host, $ICL_PORT, $errno, $errstr, 10); 329 329 if (!$conn->fp){ 330 330 $iil_error = "Could not connect to $host at port $ICL_PORT: $errstr"; … … 1389 1389 reset($index); 1390 1390 while (list($key, $val)=each($index)){ 1391 $result[$ i]=$a[$key];1391 $result[$key]=$a[$key]; 1392 1392 $i++; 1393 1393 }
Note: See TracChangeset
for help on using the changeset viewer.
