Changeset 8cb245c in github
- Timestamp:
- Sep 1, 2006 9:53:23 AM (7 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 5cd296d
- Parents:
- 3ea0e32
- Location:
- program
- Files:
-
- 2 edited
-
include/main.inc (modified) (2 diffs)
-
steps/mail/sendmail.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
program/include/main.inc
r10c92be r8cb245c 520 520 if ($user_id = $DB->insert_id(get_sequence_name('users'))) 521 521 { 522 $mail_domain = $host; 523 if (is_array($CONFIG['mail_domain'])) 524 { 525 if (isset($CONFIG['mail_domain'][$host])) 526 $mail_domain = $CONFIG['mail_domain'][$host]; 527 } 528 else if (!empty($CONFIG['mail_domain'])) 529 $mail_domain = $CONFIG['mail_domain']; 522 $mail_domain = rcmail_mail_domain($host); 530 523 531 524 if ($user_email=='') … … 1647 1640 1648 1641 1642 // return the mail domain configured for the given host 1643 function rcmail_mail_domain($host) 1644 { 1645 global $CONFIG; 1646 1647 $domain = $host; 1648 if (is_array($CONFIG['mail_domain'])) 1649 { 1650 if (isset($CONFIG['mail_domain'][$host])) 1651 $domain = $CONFIG['mail_domain'][$host]; 1652 } 1653 else if (!empty($CONFIG['mail_domain'])) 1654 $domain = $CONFIG['mail_domain']; 1655 1656 return $domain; 1657 } 1658 1659 1649 1660 // return code for the webmail login form 1650 1661 function rcmail_login_form($attrib) -
program/steps/mail/sendmail.inc
r3287e84 r8cb245c 67 67 $olddraftmessageid = get_input_value('_draft_saveid', RCUBE_INPUT_POST); 68 68 69 $message_id = sprintf('<%s@%s>', md5(uniqid('rcmail'.rand(),true)), $_SESSION['imap_host']);69 $message_id = sprintf('<%s@%s>', md5(uniqid('rcmail'.rand(),true)), rcmail_mail_domain($_SESSION['imap_host'])); 70 70 $savedraft = !empty($_POST['_draft']) ? TRUE : FALSE; 71 71
Note: See TracChangeset
for help on using the changeset viewer.
