private void login(MailAccount account) {
		sTrace.debug("login for Account " + account.userName);
		try {
			// send username
			writeToServer("USER " + account.userName);

			if (readFromServer().startsWith("-ERR")) {
				// Server returned -ERR -> abort
				throw new Exception("Username refused");
			} else {
				sTrace.debug("Login successful for Account " + account.userName);
			}
			// send password
			writeToServer("PASS " + account.passwd);

			if (readFromServer().startsWith("-ERR")) {
				// Server returned -ERR -> abort
				throw new Exception("Password refused");
			}
		} catch (IOException e) {
			error = true;
			sTrace.error("Socket Error during Pop3Client.login()\n"
					+ e.getMessage());
		} catch (Exception e) {
			error = true;
			sTrace.error("Could not login: "
					+ account.serverAddress.getHostName() + " : "
					+ account.userName + "\n" + e.getMessage());
		}
	}