Changeset 3977 in subversion


Ignore:
Timestamp:
Sep 20, 2010 7:07:56 AM (3 years ago)
Author:
alec
Message:
  • Support %z variable in host configuration options (#1487003)
Location:
trunk/roundcubemail
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r3974 r3977  
    2626- Fix when IMAP connection fails in 'get' action session shouldn't be destroyed (#1486995) 
    2727- Fix list_cols is not updated after column dragging (#1486999) 
     28- Support %z variable in host configuration options (#1487003) 
    2829 
    2930RELEASE 0.4 
  • trunk/roundcubemail/config/main.inc.php.dist

    r3907 r3977  
    9999// %n - http hostname ($_SERVER['SERVER_NAME']) 
    100100// %d - domain (http hostname without the first part) 
     101// %z - IMAP domain (IMAP hostname without the first part) 
    101102// For example %n = mail.domain.tld, %d = domain.tld 
    102103$rcmail_config['smtp_server'] = ''; 
     
    185186// %n - http hostname ($_SERVER['SERVER_NAME']) 
    186187// %d - domain (http hostname without the first part) 
     188// %z - IMAP domain (IMAP hostname without the first part) 
    187189// For example %n = mail.domain.tld, %d = domain.tld 
    188190$rcmail_config['username_domain'] = ''; 
     
    194196// %n - http hostname ($_SERVER['SERVER_NAME']) 
    195197// %d - domain (http hostname without the first part) 
     198// %z - IMAP domain (IMAP hostname without the first part) 
    196199// For example %n = mail.domain.tld, %d = domain.tld 
    197200$rcmail_config['mail_domain'] = ''; 
     
    401404  // %n - http hostname ($_SERVER['SERVER_NAME']) 
    402405  // %d - domain (http hostname without the first part) 
     406  // %z - IMAP domain (IMAP hostname without the first part) 
    403407  // For example %n = mail.domain.tld, %d = domain.tld 
    404408  'hosts'         => array('directory.verisign.com'), 
  • trunk/roundcubemail/program/include/main.inc

    r3968 r3977  
    15891589  // %h - IMAP host 
    15901590  $h = $_SESSION['imap_host']; 
    1591  
    1592   $name = str_replace(array('%n', '%d', '%h'), array($n, $d, $h), $name); 
     1591  // %z - IMAP domain without first part, e.g. %h=imap.domain.tld, %z=domain.tld 
     1592  $z = preg_replace('/^[^\.]+\./', '', $h); 
     1593 
     1594  $name = str_replace(array('%n', '%d', '%h', '%z'), array($n, $d, $h, $z), $name); 
    15931595  return $name; 
    15941596} 
Note: See TracChangeset for help on using the changeset viewer.