private static String getExpression(String message) {
		if (message.matches("^LOGIN .*")) {
			return "LOGIN";
		} else if (message.matches("^CLIST .*")) {
			return "CLIST";
		} else if (message.matches("^GETNEWMAILS .*")) {
			return "GETNEWMAILS";
		} else if (message.matches("^NEWCONT .*")) {
			return "NEWCONT";
		} else if(message.matches("^SEND MAIL .*")) {
			return "SEND MAIL";
		} else if(message.matches("(?i)^MAIL TO [_a-z0-9-]+(\\.[_a-z0-9-]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*(\\.[a-z]{2,4})")) {
			return "MAIL TO";
		} else if(message.matches("(?i)^MAIL SUBJECT \".*\"")) {
			return "MAIL SUBJECT";
		} else if(message.matches("(?i)^MAIL BODY \".*\"")) {
			return "MAIL BODY";
		} else if(message.matches("(?i)^END SEND MAIL")) {
			return "END SEND MAIL";
		} else if(message.matches("(?i)^CHECK CONTACT [_a-z0-9-]+(\\.[_a-z0-9-]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*(\\.[a-z]{2,4})")) {
			return "CHECK CONTACT";
		}
		return message;
	}