String hostname = args[0];
String user = args[1];
String password = args[2];
NNTPClient client = new NNTPClient();
client.addProtocolCommandListener(new PrintCommandListener(new PrintWriter(System.out)));
client.connect(hostname);
if(!client.authenticate(user, password)) {
System.out.println("Authentication failed for user " + user + "!");
System.exit(1);