Changeset 83a7636 in github for program/include/rcube_config.php
- Timestamp:
- Jun 14, 2008 8:23:08 AM (5 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- fca66b0
- Parents:
- f0d4b72
- File:
-
- 1 edited
-
program/include/rcube_config.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
program/include/rcube_config.php
r033478d r83a7636 178 178 179 179 180 /** 181 * Try to autodetect operating system and find the correct line endings 182 * 183 * @return string The appropriate mail header delimiter 184 */ 185 public function header_delimiter() 186 { 187 // use the configured delimiter for headers 188 if (!empty($this->prop['mail_header_delimiter'])) 189 return $this->prop['mail_header_delimiter']; 190 else if (strtolower(substr(PHP_OS, 0, 3) == 'win')) 191 return "\r\n"; 192 else if (strtolower(substr(PHP_OS, 0, 3) == 'mac')) 193 return "\r\n"; 194 else 195 return "\n"; 196 } 197 198 199 200 /** 201 * Return the mail domain configured for the given host 202 * 203 * @param string IMAP host 204 * @return string Resolved SMTP host 205 */ 206 public function mail_domain($host) 207 { 208 $domain = $host; 209 210 if (is_array($this->prop['mail_domain'])) { 211 if (isset($this->prop['mail_domain'][$host])) 212 $domain = $this->prop['mail_domain'][$host]; 213 } 214 else if (!empty($this->prop['mail_domain'])) 215 $domain = $this->prop['mail_domain']; 216 217 return $domain; 218 } 219 220 180 221 } 181 222
Note: See TracChangeset
for help on using the changeset viewer.
