Changeset 9fee0ed in github


Ignore:
Timestamp:
Oct 16, 2005 3:12:24 PM (8 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
cd900dd
Parents:
69f71ba
Message:

Fixed folder display; added Portuguese and Catalan

Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    r49afbf5 r9fee0ed  
    4343- Show nested mailboxes hieracically 
    4444- Enable IMAPS by host 
     45 
     46 
     472005/15/16 
     48---------- 
     49- Added Portuguese and Catalan translation 
     50- Make SMTP auth method configurable 
     51- Make mailboxlist scrollable (Bug #1326372) 
     52 
  • program/include/main.inc

    r14eafe4 r9fee0ed  
    423423  } 
    424424 
     425 
     426// read directory program/localization/ and return a list of available languages 
     427function 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  } 
    425452 
    426453 
  • program/include/rcube_imap.inc

    r69f71ba r9fee0ed  
    269269      $count = iil_C_CountMessages($this->conn, $mailbox); 
    270270 
    271 //print "/**** get messagecount for $mailbox ($mode): $count ****/\n"; 
     271// print "/**** get messagecount for $mailbox ($mode): $count ****/\n"; 
    272272 
    273273    if (is_array($a_mailbox_cache[$mailbox])) 
     
    313313      $a_msg_headers = array(); 
    314314      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; 
    317317         
    318318// print "/**** fetch headers ****/\n"; 
     
    446446    if ($this->caching_enabled && $result && ($a_cached_headers = $this->get_cache($cache_key))) 
    447447      { 
    448       // close and re-open connection       
     448      // close and re-open connection 
    449449      $this->reconnect(); 
    450450 
  • program/include/rcube_shared.inc

    r30233b8 r9fee0ed  
    11101110    $text = $a_text_item['single']; 
    11111111 
     1112  // perform utf-8 decoding 
     1113  //if (function_exists('utf8_decode')) 
     1114  //  $text = utf8_decode($text); 
    11121115 
    11131116  // replace vars in text 
     
    14151418 
    14161419 
     1420function 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 
    14171436?> 
  • program/js/app.js

    r14eafe4 r9fee0ed  
    1 /* 
     1/* 
    22 +-----------------------------------------------------------------------+ 
    33 | RoundCube Webmail Client Script                                       | 
     
    10071007      { 
    10081008      page = 1; 
     1009      add_url += '&_refresh=1'; 
    10091010      this.env.current_page = page; 
    10101011      this.clear_selection(); 
     
    10171018    if (this.gui_objects.messagelist) 
    10181019      { 
    1019       this.list_mailbox_remote(mbox, page); 
     1020      this.list_mailbox_remote(mbox, page, add_url); 
    10201021      return; 
    10211022      } 
     
    10241025      { 
    10251026      target = window.frames[this.env.contentframe]; 
    1026       add_url = '&_framed=1'; 
     1027      add_url += '&_framed=1'; 
    10271028      } 
    10281029 
     
    10371038 
    10381039  // 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) 
    10401041    { 
    10411042    // clear message list 
     
    10511052    var url = '_mbox='+escape(mbox)+(page ? '&_page='+page : ''); 
    10521053    this.set_busy(true, 'loading'); 
    1053     this.http_request('list', url); 
     1054    this.http_request('list', url+add_url); 
    10541055    }; 
    10551056 
  • program/lib/imap.inc

    r520c36a r9fee0ed  
    326326         
    327327        //open socket connection 
    328         $conn->fp = @fsockopen($host, $ICL_PORT, &$errno, &$errstr, 10); 
     328        $conn->fp = @fsockopen($host, $ICL_PORT, $errno, $errstr, 10); 
    329329        if (!$conn->fp){ 
    330330        $iil_error = "Could not connect to $host at port $ICL_PORT: $errstr"; 
     
    13891389                reset($index); 
    13901390                while (list($key, $val)=each($index)){ 
    1391                         $result[$i]=$a[$key]; 
     1391                        $result[$key]=$a[$key]; 
    13921392                        $i++; 
    13931393                } 
Note: See TracChangeset for help on using the changeset viewer.