Changeset 3684 in subversion


Ignore:
Timestamp:
May 28, 2010 9:54:32 AM (3 years ago)
Author:
alec
Message:
Location:
trunk/roundcubemail
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r3680 r3684  
    22=========================== 
    33 
     4- Add 'imap_timeout' option (#1486760) 
    45- Fix forwarding of messages with winmail attachments 
    56- Fix handling of uuencoded attachments in message body (#1485839) 
  • trunk/roundcubemail/config/main.inc.php.dist

    r3646 r3684  
    8181$rcmail_config['imap_force_caps'] = false; 
    8282 
     83// IMAP connection timeout, in seconds. Default: 0 (no limit) 
     84$rcmail_config['imap_timeout'] = 0; 
     85 
    8386// ---------------------------------- 
    8487// SMTP 
     
    111114// localhost if that isn't defined.  
    112115$rcmail_config['smtp_helo_host'] = ''; 
     116 
     117// SMTP connection timeout, in seconds. Default: 0 (no limit) 
     118$rcmail_config['smtp_timeout'] = 0; 
    113119 
    114120// ---------------------------------- 
  • trunk/roundcubemail/program/include/rcmail.php

    r3633 r3684  
    429429    $options = array( 
    430430      'auth_method' => $this->config->get('imap_auth_type', 'check'), 
    431       'delimiter' => isset($_SESSION['imap_delimiter']) ? $_SESSION['imap_delimiter'] : $this->config->get('imap_delimiter'), 
    432       'rootdir' => isset($_SESSION['imap_root']) ? $_SESSION['imap_root'] : $this->config->get('imap_root'), 
    433       'debug_mode' => (bool) $this->config->get('imap_debug', 0), 
    434       'force_caps' => (bool) $this->config->get('imap_force_caps'), 
     431      'delimiter'   => isset($_SESSION['imap_delimiter']) ? $_SESSION['imap_delimiter'] : $this->config->get('imap_delimiter'), 
     432      'rootdir'     => isset($_SESSION['imap_root']) ? $_SESSION['imap_root'] : $this->config->get('imap_root'), 
     433      'debug_mode'  => (bool) $this->config->get('imap_debug', 0), 
     434      'force_caps'  => (bool) $this->config->get('imap_force_caps'), 
     435      'timeout'     => (int) $this->config->get('imap_timeout', 0), 
    435436    ); 
    436437 
  • trunk/roundcubemail/program/include/rcube_imap_generic.php

    r3630 r3684  
    612612            } 
    613613 
    614             $this->fp = @fsockopen($host, $this->prefs['port'], $errno, $errstr, 10); 
     614        // Connect 
     615        if ($this->prefs['timeout'] > 0) 
     616                $this->fp = @fsockopen($host, $this->prefs['port'], $errno, $errstr, $this->prefs['timeout']); 
     617            else 
     618                $this->fp = @fsockopen($host, $this->prefs['port'], $errno, $errstr); 
     619 
    615620            if (!$this->fp) { 
    616621                $this->error    = sprintf("Could not connect to %s:%d: %s", $host, $this->prefs['port'], $errstr); 
     
    619624            } 
    620625 
    621             stream_set_timeout($this->fp, 10); 
     626        if ($this->prefs['timeout'] > 0) 
     627                stream_set_timeout($this->fp, $this->prefs['timeout']); 
     628 
    622629            $line = trim(fgets($this->fp, 8192)); 
    623630 
Note: See TracChangeset for help on using the changeset viewer.