Thomas Bruederli
2013-01-31 873ae9e9de2aba0f22f3669b1e1519a439d97b5c
program/steps/settings/edit_identity.inc
@@ -42,8 +42,9 @@
    rcmail_overwrite_action('identities');
    return;
  }
  else if (IDENTITIES_LEVEL == 1)
    $IDENTITY_RECORD['email'] = $RCMAIL->user->get_username();
  else if (IDENTITIES_LEVEL == 1) {
    $IDENTITY_RECORD['email'] = $RCMAIL->get_user_email();
  }
}
@@ -98,6 +99,13 @@
    $form['addressing']['content']['email']['class'] = 'disabled';
  }
  if (IDENTITIES_LEVEL == 4) {
    foreach($form['addressing']['content'] as $formfield => $value){
      $form['addressing']['content'][$formfield]['disabled'] = true;
      $form['addressing']['content'][$formfield]['class'] = 'disabled';
    }
  }
  $IDENTITY_RECORD['email'] = rcube_idn_to_utf8($IDENTITY_RECORD['email']);
  // Allow plugins to modify identity form content