Package com.cubusmail.server.mail

Examples of com.cubusmail.server.mail.MailboxFactory


      // start authentication
      // TODO: very dirty, must be replaced by Spring Security stuff
      ApplicationContext context = WebApplicationContextUtils.getRequiredWebApplicationContext( SessionManager
          .getRequest().getSession().getServletContext() );
      MailboxFactory factory = context.getBean( MailboxFactory.class );
      IMailbox mailbox = factory.createMailbox( IMailbox.TYPE_IMAP );
      mailbox.init( username, new String( password ) );

      log.debug( "Start login..." );
      mailbox.login();
      log.debug( "Login successful" );
View Full Code Here

TOP

Related Classes of com.cubusmail.server.mail.MailboxFactory

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.