| | |
| | | { |
| | | global $CONFIG; |
| | | |
| | | if ($folder_id == 'INBOX') |
| | | return 'inbox'; |
| | | |
| | | // for these mailboxes we have localized labels and css classes |
| | | foreach (array('sent', 'drafts', 'trash', 'junk') as $smbx) |
| | | { |
| | | if ($folder_id == $CONFIG[$smbx.'_mbox']) |
| | | return $smbx; |
| | | } |
| | | |
| | | if ($folder_id == 'INBOX') |
| | | return 'inbox'; |
| | | } |
| | | |
| | | |
| | |
| | | if (!$dns_check || !rcmail::get_instance()->config->get('email_dns_check')) |
| | | return true; |
| | | |
| | | if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN' && version_compare(PHP_VERSION, '5.3.0', '<')) |
| | | return true; |
| | | if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN' && version_compare(PHP_VERSION, '5.3.0', '<')) { |
| | | $lookup = array(); |
| | | @exec("nslookup -type=MX " . escapeshellarg($domain_part) . " 2>&1", $lookup); |
| | | foreach ($lookup as $line) { |
| | | if (strpos($line, 'MX preference')) |
| | | return true; |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | // find MX record(s) |
| | | if (getmxrr($domain_part, $mx_records)) |