Changeset 3684 in subversion
- Timestamp:
- May 28, 2010 9:54:32 AM (3 years ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 4 edited
-
CHANGELOG (modified) (1 diff)
-
config/main.inc.php.dist (modified) (2 diffs)
-
program/include/rcmail.php (modified) (1 diff)
-
program/include/rcube_imap_generic.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r3680 r3684 2 2 =========================== 3 3 4 - Add 'imap_timeout' option (#1486760) 4 5 - Fix forwarding of messages with winmail attachments 5 6 - Fix handling of uuencoded attachments in message body (#1485839) -
trunk/roundcubemail/config/main.inc.php.dist
r3646 r3684 81 81 $rcmail_config['imap_force_caps'] = false; 82 82 83 // IMAP connection timeout, in seconds. Default: 0 (no limit) 84 $rcmail_config['imap_timeout'] = 0; 85 83 86 // ---------------------------------- 84 87 // SMTP … … 111 114 // localhost if that isn't defined. 112 115 $rcmail_config['smtp_helo_host'] = ''; 116 117 // SMTP connection timeout, in seconds. Default: 0 (no limit) 118 $rcmail_config['smtp_timeout'] = 0; 113 119 114 120 // ---------------------------------- -
trunk/roundcubemail/program/include/rcmail.php
r3633 r3684 429 429 $options = array( 430 430 '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), 435 436 ); 436 437 -
trunk/roundcubemail/program/include/rcube_imap_generic.php
r3630 r3684 612 612 } 613 613 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 615 620 if (!$this->fp) { 616 621 $this->error = sprintf("Could not connect to %s:%d: %s", $host, $this->prefs['port'], $errstr); … … 619 624 } 620 625 621 stream_set_timeout($this->fp, 10); 626 if ($this->prefs['timeout'] > 0) 627 stream_set_timeout($this->fp, $this->prefs['timeout']); 628 622 629 $line = trim(fgets($this->fp, 8192)); 623 630
Note: See TracChangeset
for help on using the changeset viewer.
