@@ -0,0 +1,926 @@
+package org.ishausa.events;%0A%0A/**%0A * This is the starting point for execution.%0A *%0A * @author psriniv%0A */%0Apublic class IshaEventManager %7B%0A%0A    /**%0A     * @param args the command line arguments%0A     */%0A    public static void main(String%5B%5D args) throws Exception %7B%0A        if (args.length %3E 0) %7B%0A            System.out.println(%22args%5B0%5D: %22 + args%5B0%5D);%0A        %7D%0A        // Start thread to poll for mail%0A        // on new mail, hand it over to parser%0A        // if parsed as an event, create a calendar entry%0A        Account account = new IshaEventsOAuthTokenProvider();%0A        CalendarEntryCreator eventLogger = new CalendarEntryCreator(account);%0A%0A        MailParser mailParser = new MailParser();%0A        mailParser.addListener(eventLogger);%0A%0A        MailPoller poller = new MailPoller(account, 1);%0A        poller.addListener(mailParser);%0A%0A        poller.start();%0A        poller.waitForRuns();%0A        poller.shutdown();%0A    %7D%0A%7D%0A

Create IshaEventManager.java