public static void main(String[] args) {
		System.out.println("Message Sender (1.10) for MessagingTool");
		System.out.println("Copyright (c) 1998, 2004 by Yoshiki Shibata." + 
						   " All rights reserved\n");

		// Make sure there are only two arguments: recipients and message
		if (args.length != 2 && args.length != 3) {
            showUsage();
		}
        
        if (args[0].equals("-m")) {
            if (args.length != 3) 
                showUsage();
            
            String msg = args[2];
            if (msg.charAt(msg.length()-1) != '\n')
                msg = msg + '\n';
            
            if (MeetingProtocol.getInstance().message(
                    args[1],
                    PropertiesDB.getInstance().getUserName(),
                    msg)) {
            	System.out.println("message is delivered to " + args[1]);
                System.exit(0);
            } else {
                System.out.println("message is too long");
                System.exit(1);
            }
        }
        
        if (args.length != 2) 
            showUsage();
        
        // Check the message length    
        if (args[1].length() == 0) {
            System.out.println("Null message cannot be sent");
            System.exit(1);
        }
		
		String[] recipientsList = parseRecipients(args[0]);
		String message = createMessage(args[1], recipientsList);
		sendMessage(recipientsList, message);
	}