Changeset a392125 in github
- Timestamp:
- Oct 11, 2010 3:19:50 AM (3 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- bb26996
- Parents:
- 14015da
- Files:
-
- 3 edited
-
CHANGELOG (modified) (1 diff)
-
config/main.inc.php.dist (modified) (1 diff)
-
program/include/rcube_smtp.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
r29983c1 ra392125 27 27 - Prevent from inserting empty link when composing HTML message (#1486944) 28 28 - Add caching support in id2uid and uid2id functions (#1487019) 29 - Add SASL proxy authentication for SMTP (#1486693) 29 30 30 31 RELEASE 0.4.2 -
config/main.inc.php.dist
rf22ea7b ra392125 117 117 // best server supported one) 118 118 $rcmail_config['smtp_auth_type'] = ''; 119 120 // Optional SMTP authorization identifier to be used as authorization proxy 121 $rcmail_config['smtp_authzid'] = null; 119 122 120 123 // SMTP HELO host -
program/include/rcube_smtp.php
rf22ea7b ra392125 45 45 * @param string User name 46 46 * @param string Password 47 * @param string Optional authorization ID to be used as authorization proxy 47 48 * 48 49 * @return bool Returns true on success, or false on error 49 50 */ 50 public function connect($host=null, $port=null, $user=null, $pass=null )51 public function connect($host=null, $port=null, $user=null, $pass=null, $authz=null) 51 52 { 52 53 $RCMAIL = rcmail::get_instance(); … … 60 61 // let plugins alter smtp connection config 61 62 $CONFIG = $RCMAIL->plugins->exec_hook('smtp_connect', array( 62 'smtp_server' => $host ? $host : $RCMAIL->config->get('smtp_server'), 63 'smtp_port' => $port ? $port : $RCMAIL->config->get('smtp_port', 25), 64 'smtp_user' => $user ? $user : $RCMAIL->config->get('smtp_user'), 65 'smtp_pass' => $pass ? $pass : $RCMAIL->config->get('smtp_pass'), 63 'smtp_server' => $host ? $host : $RCMAIL->config->get('smtp_server'), 64 'smtp_port' => $port ? $port : $RCMAIL->config->get('smtp_port', 25), 65 'smtp_user' => $user ? $user : $RCMAIL->config->get('smtp_user'), 66 'smtp_pass' => $pass ? $pass : $RCMAIL->config->get('smtp_pass'), 67 'smtp_authzid' => $authz ? $authz : $RCMAIL->config->get('smtp_authzid'), 66 68 'smtp_auth_type' => $RCMAIL->config->get('smtp_auth_type'), 67 69 'smtp_helo_host' => $RCMAIL->config->get('smtp_helo_host'), … … 106 108 if($RCMAIL->config->get('smtp_debug')) 107 109 $this->conn->setDebug(true, array($this, 'debug_handler')); 108 110 109 111 // try to connect to server and exit on failure 110 112 $result = $this->conn->connect($smtp_timeout); … … 121 123 $smtp_auth_type = empty($CONFIG['smtp_auth_type']) ? NULL : $CONFIG['smtp_auth_type']; 122 124 125 if (!empty($CONFIG['smtp_authzid'])) { 126 $smtp_authz = $smtp_user; 127 $smtp_user = $CONFIG['smtp_authzid']; 128 } 129 123 130 // attempt to authenticate to the SMTP server 124 131 if ($smtp_user && $smtp_pass) … … 128 135 $smtp_user = idn_to_ascii($smtp_user); 129 136 130 $result = $this->conn->auth($smtp_user, $smtp_pass, $smtp_auth_type, $use_tls );137 $result = $this->conn->auth($smtp_user, $smtp_pass, $smtp_auth_type, $use_tls, $smtp_authz); 131 138 132 139 if (PEAR::isError($result))
Note: See TracChangeset
for help on using the changeset viewer.
