Changeset 8cb245c in github


Ignore:
Timestamp:
Sep 1, 2006 9:53:23 AM (7 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
5cd296d
Parents:
3ea0e32
Message:

Correct creation of a message-id

Location:
program
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • program/include/main.inc

    r10c92be r8cb245c  
    520520  if ($user_id = $DB->insert_id(get_sequence_name('users'))) 
    521521    { 
    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); 
    530523    
    531524    if ($user_email=='') 
     
    16471640 
    16481641 
     1642// return the mail domain configured for the given host 
     1643function 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 
    16491660// return code for the webmail login form 
    16501661function rcmail_login_form($attrib) 
  • program/steps/mail/sendmail.inc

    r3287e84 r8cb245c  
    6767  $olddraftmessageid = get_input_value('_draft_saveid', RCUBE_INPUT_POST); 
    6868 
    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'])); 
    7070$savedraft = !empty($_POST['_draft']) ? TRUE : FALSE; 
    7171 
Note: See TracChangeset for help on using the changeset viewer.