Package com.ripariandata.timberwolf.mail

Examples of com.ripariandata.timberwolf.mail.MailStore


        {
            @Override
            public Object run()
            {

                MailStore mailStore = new ExchangeMailStore(exchangeURL, 12, 4);
                MailWriter mailWriter = HBaseMailWriter.create(emailTable.getTable(), keyHeader,
                                                               emailTable.getFamily());
                HBaseUserFolderSyncStateStorage syncStateHandler =
                        new HBaseUserFolderSyncStateStorage(userTable.getManager(), userTable.getName());

                try
                {
                    Iterable<String> users = new LdapFetcher(ldapDomain).getPrincipals();
                    removeUsers(users, senderEmail, ignoredEmail);
                    Iterable<MailboxItem> mailboxItems = mailStore.getMail(users, syncStateHandler);
                    mailWriter.write(mailboxItems);
                }
                catch (PrincipalFetchException e)
                {
                    e.printStackTrace();
View Full Code Here

TOP

Related Classes of com.ripariandata.timberwolf.mail.MailStore

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.