1 18 package org.columba.mail.folder; 19 20 import java.io.File ; 21 import java.io.IOException ; 22 import java.io.InputStream ; 23 24 import org.columba.api.command.IStatusObservable; 25 import org.columba.core.filter.IFilterList; 26 import org.columba.core.filter.IFilter; 27 import org.columba.mail.message.IHeaderList; 28 import org.columba.ristretto.message.Attributes; 29 import org.columba.ristretto.message.Flags; 30 import org.columba.ristretto.message.Header; 31 import org.columba.ristretto.message.MailboxInfo; 32 import org.columba.ristretto.message.MimeTree; 33 34 42 public interface IMailbox extends IMailFolder { 43 44 50 public IMailboxInfo getMessageFolderInfo(); 51 52 57 public void expungeFolder() throws Exception ; 58 59 67 public boolean exists(Object uid) throws Exception ; 68 69 75 public IHeaderList getHeaderList() throws Exception ; 76 77 89 public abstract void markMessage(Object [] uids, int variant) 90 throws Exception ; 91 92 101 public MimeTree getMimePartTree(Object uid) throws Exception ; 102 103 123 public void innerCopy(IMailbox destFolder, Object [] uids) throws Exception ; 124 125 133 public Object addMessage(InputStream in) throws Exception ; 134 135 147 public Object addMessage(InputStream in, Attributes attributes, Flags flags) 148 throws Exception ; 149 150 168 public Header getHeaderFields(Object uid, String [] keys) throws Exception ; 169 170 182 public InputStream getMimePartBodyStream(Object uid, Integer [] address) 183 throws Exception ; 184 185 196 public InputStream getMimePartSourceStream(Object uid, Integer [] address) 197 throws Exception ; 198 199 207 public InputStream getMessageSourceStream(Object uid) throws Exception ; 208 209 217 public Flags getFlags(Object uid) throws Exception ; 218 219 230 public Object getAttribute(Object uid, String key) throws Exception ; 231 232 240 public Attributes getAttributes(Object uid) throws Exception ; 241 242 253 public void setAttribute(Object uid, String key, Object value) 254 throws Exception ; 255 256 257 public void removeMessage(Object uid) throws Exception ; 258 259 264 public Object [] getUids() throws Exception ; 265 266 274 public Header getAllHeaderFields(Object uid) throws Exception ; 275 276 public Object [] searchMessages(IFilter filter) throws Exception ; 277 278 public Object [] searchMessages(IFilter filter, Object [] uids) 279 throws Exception ; 280 281 287 public boolean isReadOnly(); 288 289 IStatusObservable getObservable(); 290 291 Object getLastSelection(); 292 293 void setLastSelection(Object lastSel); 294 295 IFilterList getFilterList(); 296 297 public File getDirectoryFile(); 298 299 public boolean isInboxFolder(); 300 301 public boolean isTrashFolder(); 302 } 303 | Popular Tags |