Package org.apache.james.mailbox.maildir

Examples of org.apache.james.mailbox.maildir.MaildirMessageName


    private List<Message<Integer>> findMessageInMailboxWithUID(Mailbox<Integer> mailbox, long uid)
            throws MailboxException {
        MaildirFolder folder = maildirStore.createMaildirFolder(mailbox);
        try {
            MaildirMessageName messageName = folder.getMessageNameByUid(mailboxSession, uid);

            ArrayList<Message<Integer>> messages = new ArrayList<Message<Integer>>();
            if (messageName != null && messageName.getFile().exists()) {
                messages.add(new MaildirMessage(mailbox, uid, messageName));
            }
            return messages;

        } catch (IOException e) {
View Full Code Here


    private List<Message<Integer>> findDeletedMessageInMailboxWithUID(Mailbox<Integer> mailbox, long uid)
            throws MailboxException {
        MaildirFolder folder = maildirStore.createMaildirFolder(mailbox);
        try {
            MaildirMessageName messageName = folder.getMessageNameByUid(mailboxSession, uid);
            ArrayList<Message<Integer>> messages = new ArrayList<Message<Integer>>();
            if (MaildirMessageName.FILTER_DELETED_MESSAGES.accept(null, messageName.getFullName())) {
                messages.add(new MaildirMessage(mailbox, uid, messageName));
            }
            return messages;

        } catch (IOException e) {
View Full Code Here

TOP

Related Classes of org.apache.james.mailbox.maildir.MaildirMessageName

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.