Java Doc for IMailbox.java in  » Mail-Clients » columba-1.4 » org » columba » mail » folder » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Mail Clients » columba 1.4 » org.columba.mail.folder 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.columba.mail.folder.IMailbox

All known Subclasses:   org.columba.mail.folder.AbstractMessageFolder,
IMailbox
public interface IMailbox extends IMailFolder(Code)
Every mailbox which actually containss message should implement this interface.

Note, that this also means to subclass Folder .
author:
   fdietz





Method Summary
public  ObjectaddMessage(InputStream in)
    
public  ObjectaddMessage(InputStream in, Attributes attributes, Flags flags)
    
public  booleanexists(Object uid)
     Checks if message with uid exists in this folder.
Parameters:
  uid - UID of message boolean true, if message exists.
public  voidexpungeFolder()
    
public  HeadergetAllHeaderFields(Object uid)
     Get all email headers.
public  ObjectgetAttribute(Object uid, String key)
     Gets a attribute from the message
Parameters:
  uid - The UID of the message
Parameters:
  key - The name of the attribute (e.g.
public  AttributesgetAttributes(Object uid)
    
public  FilegetDirectoryFile()
    
 IFilterListgetFilterList()
    
public  FlagsgetFlags(Object uid)
     Gets the Flags of the message.
public  HeadergetHeaderFields(Object uid, String[] keys)
     Gets all specified headerfields.
public  IHeaderListgetHeaderList()
     Return list of headers.
 ObjectgetLastSelection()
    
public  IMailboxInfogetMessageFolderInfo()
    
public  InputStreamgetMessageSourceStream(Object uid)
     Gets the InputStream of the complete messagesource.
public  InputStreamgetMimePartBodyStream(Object uid, Integer[] address)
     Gets the InputStream from the body of the mimepart.
public  InputStreamgetMimePartSourceStream(Object uid, Integer[] address)
     Gets the InputStream from the complete mimepart.
public  MimeTreegetMimePartTree(Object uid)
     Return mimepart structure.
 IStatusObservablegetObservable()
    
public  Object[]getUids()
     Return array of uids this folder contains.
public  voidinnerCopy(IMailbox destFolder, Object[] uids)
     Copy messages identified by UID to this folder.

This method is necessary for optimization reasons.

Think about using local and remote folders.

public  booleanisInboxFolder()
    
public  booleanisReadOnly()
    
public  booleanisTrashFolder()
    
abstract public  voidmarkMessage(Object[] uids, int variant)
     Mark messages as read/flagged/expunged/etc.
public  voidremoveMessage(Object uid)
    
public  Object[]searchMessages(IFilter filter)
    
public  Object[]searchMessages(IFilter filter, Object[] uids)
    
public  voidsetAttribute(Object uid, String key, Object value)
     Set attribute for message with UID.
 voidsetLastSelection(Object lastSel)
    



Method Detail
addMessage
public Object addMessage(InputStream in) throws Exception(Code)
Adds a message to this Mailbox
Parameters:
  in - The message InputStream The new uid of the added message or null if not defined
throws:
  Exception -



addMessage
public Object addMessage(InputStream in, Attributes attributes, Flags flags) throws Exception(Code)
Adds a message to this Mailbox
Parameters:
  in - The message InputStream
Parameters:
  attributes - The attributes of the message
Parameters:
  flags - the flags of the message The new uid of the added message or null if not defined
throws:
  Exception -



exists
public boolean exists(Object uid) throws Exception(Code)
Checks if message with uid exists in this folder.
Parameters:
  uid - UID of message boolean true, if message exists. False, otherwise.
throws:
  Exception -



expungeFolder
public void expungeFolder() throws Exception(Code)
Removes all messages which are marked as expunged
throws:
  Exception -



getAllHeaderFields
public Header getAllHeaderFields(Object uid) throws Exception(Code)
Get all email headers.
Parameters:
  uid - message uid complete email headers
throws:
  Exception -



getAttribute
public Object getAttribute(Object uid, String key) throws Exception(Code)
Gets a attribute from the message
Parameters:
  uid - The UID of the message
Parameters:
  key - The name of the attribute (e.g. "columba.subject","columba.size")
throws:
  Exception -



getAttributes
public Attributes getAttributes(Object uid) throws Exception(Code)
Gets the attributes from the message
Parameters:
  uid - The UID of the message
throws:
  Exception -



getDirectoryFile
public File getDirectoryFile()(Code)



getFilterList
IFilterList getFilterList()(Code)



getFlags
public Flags getFlags(Object uid) throws Exception(Code)
Gets the Flags of the message.
Parameters:
  uid - The UID of the message
throws:
  Exception -



getHeaderFields
public Header getHeaderFields(Object uid, String[] keys) throws Exception(Code)
Gets all specified headerfields. An example headerfield might be "Subject" or "From" (take care of lower/uppercaseletters).

Note, that you should use getAttributes() for fetching the internal headerfields (for example: columba.subject, columba.flags.seen, etc.).

This method first tries to find the requested header in the header cache (@see CachedFolder). If the headerfield is not cached, the message source is parsed.
Parameters:
  uid - The uid of the desired message
Parameters:
  keys - The keys like defined in e.g. RFC2822 A Headercontaining the headerfields if they were present
throws:
  Exception -




getHeaderList
public IHeaderList getHeaderList() throws Exception(Code)
Return list of headers. HeaderList list of headers
throws:
  Exception -



getLastSelection
Object getLastSelection()(Code)



getMessageFolderInfo
public IMailboxInfo getMessageFolderInfo()(Code)
Get the MailboxInfo of this mailbox
throws:
  IOException -



getMessageSourceStream
public InputStream getMessageSourceStream(Object uid) throws Exception(Code)
Gets the InputStream of the complete messagesource.
Parameters:
  uid - The UID of the message
throws:
  Exception -



getMimePartBodyStream
public InputStream getMimePartBodyStream(Object uid, Integer[] address) throws Exception(Code)
Gets the InputStream from the body of the mimepart. This excludes the header. If the stream was encoded with QuotedPrintable or Base64 decoding is already done.
Parameters:
  uid - The UID of the message
Parameters:
  address - The address of the mimepart
throws:
  Exception -



getMimePartSourceStream
public InputStream getMimePartSourceStream(Object uid, Integer[] address) throws Exception(Code)
Gets the InputStream from the complete mimepart. This includes the header.
Parameters:
  uid - The UID of the message
Parameters:
  address - address The address of the mimepart
throws:
  Exception -



getMimePartTree
public MimeTree getMimePartTree(Object uid) throws Exception(Code)
Return mimepart structure. See MimePartTree for more details.
Parameters:
  uid - UID of message MimePartTree return mimepart structure
throws:
  Exception -



getObservable
IStatusObservable getObservable()(Code)



getUids
public Object[] getUids() throws Exception(Code)
Return array of uids this folder contains. Object[] array of all UIDs this folder contains



innerCopy
public void innerCopy(IMailbox destFolder, Object[] uids) throws Exception(Code)
Copy messages identified by UID to this folder.

This method is necessary for optimization reasons.

Think about using local and remote folders. If we would have only methods to add/remove messages this wouldn't be very efficient when moving messages between for example IMAP folders on the same server. We would have to download a complete message to remove it and then upload it again to add it to the destination folder.

Using the innercopy method the IMAP server can use its COPY command to move the message on the server-side.
Parameters:
  destFolder - the destination folder of the copy operation
Parameters:
  uids - an array of UID's identifying the messages
throws:
  Exception -




isInboxFolder
public boolean isInboxFolder()(Code)



isReadOnly
public boolean isReadOnly()(Code)
Is this mailbox read-only?



isTrashFolder
public boolean isTrashFolder()(Code)



markMessage
abstract public void markMessage(Object[] uids, int variant) throws Exception(Code)
Mark messages as read/flagged/expunged/etc. See MarkMessageCommand for more information especially concerning the variant value.
Parameters:
  uid - array of UIDs
Parameters:
  variant - variant can be a value between 0 and 6
throws:
  Exception -



removeMessage
public void removeMessage(Object uid) throws Exception(Code)



searchMessages
public Object[] searchMessages(IFilter filter) throws Exception(Code)



searchMessages
public Object[] searchMessages(IFilter filter, Object[] uids) throws Exception(Code)



setAttribute
public void setAttribute(Object uid, String key, Object value) throws Exception(Code)
Set attribute for message with UID.
Parameters:
  uid - UID of message
Parameters:
  key - name of attribute (e.g."columba.subject");
Parameters:
  value - value of attribute
throws:
  Exception -



setLastSelection
void setLastSelection(Object lastSel)(Code)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.