Package org.apache.james.mailbox.maildir.mail.model

Examples of org.apache.james.mailbox.maildir.mail.model.MaildirMailbox


    }

    @Override
    protected Mailbox<Integer> doCreateMailbox(MailboxPath mailboxPath, MailboxSession session)
            throws MailboxException {
        return new MaildirMailbox(mailboxPath, randomUidValidity(), 0);
    }
View Full Code Here


     * referring to renamed mailboxes via id.
     * @param mailbox The mailbox to cache
     * @return The id of the cached mailbox
     */
    private Mailbox<Integer> cacheMailbox(Mailbox<Integer> mailbox) {
        mailboxCache.add(new MaildirMailbox(mailbox));
        int id = mailboxCache.size() - 1;
        ((MaildirMailbox) mailbox).setMailboxId(id);
        return mailbox;
    }
View Full Code Here

            uidValidity = folder.getUidValidity();
            lastUid = folder.getLastUid();
        } catch (IOException e) {
            throw new MailboxException("Unable to load Mailbox " + mailboxPath, e);
        }
        return new MaildirMailbox(mailboxPath, uidValidity, lastUid);
    }
View Full Code Here

TOP

Related Classes of org.apache.james.mailbox.maildir.mail.model.MaildirMailbox

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.