private void email_debug(String[] cmd) throws IOException {
   if (cmd.length == 2 && logged) {
     boolean b = Boolean.parseBoolean(cmd[1]);
     MailSender.debugStatus(b);
     OutputWrite("email_debug=OK");
   } else OutputWrite("email_debug=error");
 }
 private void email_change_all_values(String[] cmd) throws IOException {
   if (cmd.length % 2 != 0) {
     if (logged) {
       boolean okChange = true;
       for (int i = 1; i < cmd.length; i = i + 2) {
         okChange = MailSender.changeValue(cmd[i], cmd[i + 1]);
         if (!okChange) break;
       }
       if (okChange) MailSender.saveToFile();
       else MailSender.readProperties();
       OutputWrite("email_change_all_values=" + (okChange ? "OK" : "error"));
     } else {
       OutputWrite("email_change_all_values=error");
     }
   } else {
     OutputWrite("email_change_all_values=error");
   }
 }
 private void email_reload_properties(String[] cmd) throws IOException {
   if (cmd.length == 1) {
     if (logged) {
       MailSender.readProperties();
       OutputWrite("email_reload_properties=OK");
     } else {
       OutputWrite("email_reload_properties=error");
     }
   } else {
     OutputWrite("email_reload_properties=error");
   }
 }