1 7 8 package scioworks.imap.spec.beans; 9 10 11 import javax.mail.*; 12 import javax.mail.internet.*; 13 import javax.activation.*; 14 import java.util.Vector ; 15 import scioworks.imap.spec.ImapWebException; 16 17 public interface IWMessage { 18 19 public String getMessageBody(Message mesg) 20 throws ImapWebException; 21 public Message getMessage(Folder folder, long uid) 22 throws ImapWebException; 23 public Message getMessage(Store imapStore, 24 String folderName, long uid) throws ImapWebException ; 25 public Message forwardMessage(Session imapSession, Store imapStore, 26 String folderName, long uid, boolean isInline) 27 throws ImapWebException; 28 public Message replyMessage(Session imapSession, Store imapStore, 29 String folderName, long uid, boolean replyAll, boolean quoteOrig) 30 throws ImapWebException; 31 public void sendMessage(Store imapStore, Session imapSession, URLName imapURL, 32 String imapDomain, 33 String to, String subject, String cc, String bcc, String message, 34 Vector attachments, boolean isInline, boolean saveCopy, 35 boolean isForwardAttach, String origFolderName, long origUid) 36 throws ImapWebException; 37 public void deleteMessage(Store imapStore, 38 String folderName, long[] uidArr) throws ImapWebException; 39 public void moveMessage(Store imapStore, String folderName, 40 long[] uidArr, String targetFolderName) throws ImapWebException; 41 public Part getMessagePart(Session imapSession, Store imapStore, 42 String folderName, long uid, String partIdList) throws ImapWebException; 43 public Vector getFolderNames(Store imapStore, String currentFolder) 44 throws ImapWebException; 45 public void createFolder(Store imapStore, String name) 46 throws ImapWebException; 47 public void renameFolder(Store imapStore, String folderName, String name) 48 throws ImapWebException; 49 public void removeFolder(Store imapStore, String folderName) 50 throws ImapWebException; 51 } 52 53 54 55 56 57 | Popular Tags |