out.close(); } catch (IOException propsioe) { System.err.println(propsioe); }
    boolean saveServerConf() {        if(config.equals("new")) {          File server = new File(System.getProperty("user.home") + "/.yamm/servers/" + addrField.getText());          if(server.exists()) {            new MsgDialog("server exists...");            return false;          }          else {            try {              server.createNewFile();              OutputStream out = new FileOutputStream(server);              props = new Properties();              props.setProperty("type", "pop3");              props.setProperty("server",  addrField.getText());              props.setProperty("username",    userField.getText());              props.setProperty("password",    YAMM.encrypt(new String(JPField.getPassword())));              props.store(out, "Server Config file");              out.close();            } catch (IOException propsioe) { System.err.println(propsioe); }            vect1 = new Vector();            vect1.add(props.getProperty("type"));            vect1.add(props.getProperty("server"));            vect1.add(server.toString());            vect2.add(vect1);          }        }                    else if(!config.equals(System.getProperty("user.home") + "/.yamm/.config")) {          try {            OutputStream out = new FileOutputStream(config);            int j = 0;              for(int i = 0; i <= vect2.size();i++) {              String tmp = ((Vector)vect2.elementAt(i)).elementAt(1).toString();              if(tmp.equals(props.getProperty("server"))) { j = i; break; }            }            ((Vector)vect2.elementAt(j)).setElementAt(addrField.getText(), 1);            props = new Properties();            props.setProperty("server",  addrField.getText());            props.setProperty("username",    userField.getText());            props.setProperty("password",    YAMM.encrypt(new String(JPField.getPassword())));            props.setProperty("type", "pop3");            props.store(out, "Server Config file");            out.close();          } catch (IOException propsioe) { System.err.println(propsioe); }        }        else {          try {            OutputStream out = new FileOutputStream(System.getProperty("user.home") + "/.yamm/.config");            props.setProperty("smtpserver", addrField.getText());            props.store(out, "YAMM configuration file");            out.close();          } catch (IOException propsioe) { System.err.println(propsioe); }          int j = 0;          for(int i = 0; i <= vect2.size();i++) {            String tmp = ((Vector)vect2.elementAt(i)).elementAt(0).toString();            if(tmp.equals("SMTP")) { j = i; break; }          }          ((Vector)vect2.elementAt(j)).setElementAt(addrField.getText(), 1);        }        ServerList.updateUI();        try {          InputStream in = new FileInputStream(System.getProperty("user.home") + "/.yamm/.config");          props = new Properties();          props.load(in);          in.close();        } catch (IOException propsioe) { System.err.println(propsioe); }        return true;    }