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