Marius Cramer
2014-10-10 2f7e607a9d5331c5d5f56dec8bc167907a08ddad
interface/web/mail/form/mail_user.tform.php
@@ -38,6 +38,8 @@
*/
global $app;
$app->uses('getconf');
$global_config = $app->getconf->get_global_config();
$form["title"]    = "Mailbox";
$form["description"]  = "";
@@ -56,7 +58,7 @@
$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
$form["tabs"]['mailuser'] = array (
$form["tabs"]['mailuser'] = array(
   'title'  => "Mailbox",
   'width'  => 100,
   'template'  => "templates/mail_user_mailbox_edit.htm",
@@ -107,7 +109,7 @@
            0 => array (  'type'  => 'UNIQUE',
               'errmsg'=> 'login_error_unique'),
            1 => array (  'type'  => 'REGEX',
               'regex' => '/^[a-z0-9][\w\.\-_\+@]{1,63}$/',
               'regex' => '/^[_a-z0-9][\w\.\-_\+@]{1,63}$/',
               'errmsg'=> 'login_error_regex'),
         ),
         'default' => '',
@@ -118,6 +120,14 @@
      'password' => array (
         'datatype' => 'VARCHAR',
         'formtype' => 'PASSWORD',
         'validators' => array(
            0 => array(
               'type' => 'CUSTOM',
               'class' => 'validate_password',
               'function' => 'password_check',
               'errmsg' => 'weak_password_txt'
            )
         ),
         'encryption'=> 'CRYPT',
         'default' => '',
         'value'  => '',
@@ -158,7 +168,7 @@
               'type' => 'TOLOWER')
         ),
         'validators' => array (  0 => array ( 'type' => 'REGEX',
               'regex' => '/^(\w+[\w\.\-\+]*\w{0,}@\w+[\w.-]*\.[a-z\-]{2,10}){0,1}$/i',
               'regex' => '/^(\w+[\w\.\-\+]*\w{0,}@\w+[\w.-]*\.[a-z\-]{2,10}){0,1}(,\s*\w+[\w\.\-\+]*\w{0,}@\w+[\w.-]*\.[a-z\-]{2,10}){0,}$/i',
               'errmsg'=> 'cc_error_isemail'),
         ),
         'default' => '',
@@ -212,6 +222,12 @@
         'value'      => array(1 => 'y',0 => 'n')
      ),
      */
      'disablesmtp' => array (
         'datatype' => 'VARCHAR',
         'formtype' => 'CHECKBOX',
         'default' => 'n',
         'value'  => array(1 => 'y', 0 => 'n')
      ),
      'disableimap' => array (
         'datatype' => 'VARCHAR',
         'formtype' => 'CHECKBOX',
@@ -230,6 +246,12 @@
   )
);
if($global_config['mail']['mail_password_onlyascii'] == 'y') {
   $form['tabs']['mailuser']['fields']['password']['validators'] = array( 0 => array( 'type' => 'ISASCII',
      'errmsg' => 'email_error_isascii')
   );
}
$form["tabs"]['autoresponder'] = array (
   'title'  => "Autoresponder",
   'width'  => 100,