thomascube
2006-02-05 bde645fdf1fef55ba8da8657918363fc237fb969
program/include/rcube_imap.inc
@@ -766,7 +766,7 @@
    $mailbox = $mbox ? $this->_mod_mailbox($mbox) : $this->mailbox;
    // get cached headers
    if ($headers = $this->get_cached_message($mailbox.'.msg', $uid))
    if ($is_uid && ($headers = $this->get_cached_message($mailbox.'.msg', $id)))
      return $headers;
    $msg_id = $is_uid ? $this->_uid2id($id) : $id;
@@ -1057,6 +1057,22 @@
    }
  /**
   * Get quota
   * added by Nuny
   */
  function get_quota()
    {
    if ($this->get_capability('QUOTA'))
      {
      $result = iil_C_GetQuota($this->conn);
      return sprintf("%.2fMB / %.2fMB (%.0f%%)", $result["used"] / 1000.0, $result["total"] / 1000.0, $result["percent"]);
      }
    else
      return 'unknown';
    }
  // subscribe to a specific mailbox(es)
  function subscribe($mbox, $mode='subscribe')
    {