1 17 18 package org.apache.james.imapserver.store; 19 20 import org.apache.james.services.MailRepository; 21 import org.apache.james.core.MailImpl; 22 23 import javax.mail.internet.MimeMessage ; 24 import javax.mail.search.SearchTerm ; 25 import java.util.Date ; 26 import java.util.Collection ; 27 28 38 public interface ImapMailbox 39 { 40 String getName(); 41 42 String getFullName(); 43 44 MessageFlags getAllowedFlags(); 45 46 int getMessageCount(); 47 48 int getRecentCount(); 49 50 long getUidValidity(); 51 52 int getFirstUnseen(); 53 54 int getMsn( long uid ) throws MailboxException; 55 56 boolean isSelectable(); 57 58 long getUidNext(); 59 60 int getUnseenCount(); 61 62 SimpleImapMessage createMessage( MimeMessage message, MessageFlags flags, Date internalDate ); 63 64 void updateMessage( SimpleImapMessage message ) throws MailboxException; 65 66 void store( MailImpl mail) throws Exception ; 67 68 SimpleImapMessage getMessage( long uid ); 69 70 long[] getMessageUids(); 71 72 void deleteMessage( long uid ); 73 } 74 | Popular Tags |