org.opencrx.application.imap
Class IMAPFolderImpl
java.lang.Object
javax.mail.Folder
org.opencrx.application.imap.IMAPFolderImpl
- All Implemented Interfaces:
- UIDFolder
public class IMAPFolderImpl
- extends Folder
- implements UIDFolder
| Methods inherited from class javax.mail.Folder |
addConnectionListener, addFolderListener, addMessageChangedListener, addMessageCountListener, copyMessages, fetch, finalize, getDeletedMessageCount, getMessages, getMessages, getMessages, getMode, getNewMessageCount, getStore, getUnreadMessageCount, getURLName, isSubscribed, list, listSubscribed, listSubscribed, notifyConnectionListeners, notifyFolderListeners, notifyFolderRenamedListeners, notifyMessageAddedListeners, notifyMessageChangedListeners, notifyMessageRemovedListeners, removeConnectionListener, removeFolderListener, removeMessageChangedListener, removeMessageCountListener, search, search, setFlags, setFlags, setFlags, setSubscribed, toString |
INDEX_FILE_NAME
protected static final String INDEX_FILE_NAME
- See Also:
- Constant Field Values
SYNCHRONIZE_REFRESH_RATE
protected static final long SYNCHRONIZE_REFRESH_RATE
- See Also:
- Constant Field Values
MAILDIR_PROPERTY_NAME
public static final String MAILDIR_PROPERTY_NAME
- See Also:
- Constant Field Values
EMAIL_ADDRESS_LOOKUP_CASE_INSENSITIVE_PROPERTY_NAME
public static final String EMAIL_ADDRESS_LOOKUP_CASE_INSENSITIVE_PROPERTY_NAME
- See Also:
- Constant Field Values
EMAIL_ADDRESS_LOOKUP_IGNORE_DISABLED_PROPERTY_NAME
public static final String EMAIL_ADDRESS_LOOKUP_IGNORE_DISABLED_PROPERTY_NAME
- See Also:
- Constant Field Values
name
protected final String name
activitiesHelper
protected final ActivitiesFilterHelper activitiesHelper
messageUIDs
protected final List<Long> messageUIDs
messageXRIs
protected final Map<Long,String> messageXRIs
folderDir
protected File folderDir
isEMailAddressLookupCaseInsensitive
protected boolean isEMailAddressLookupCaseInsensitive
isEMailAddressLookupIgnoreDisabled
protected boolean isEMailAddressLookupIgnoreDisabled
synchronizeNextAt
protected long synchronizeNextAt
IMAPFolderImpl
public IMAPFolderImpl(String name,
String username,
ActivitiesFilterHelper activitiesHelper)
getMailDir
public static File getMailDir(String username)
appendMessages
public void appendMessages(Message[] newMessages)
throws MessagingException
- Specified by:
appendMessages in class Folder
- Throws:
MessagingException
close
public void close(boolean arg0)
throws MessagingException
- Specified by:
close in class Folder
- Throws:
MessagingException
create
public boolean create(int arg0)
throws MessagingException
- Specified by:
create in class Folder
- Throws:
MessagingException
delete
public boolean delete(boolean arg0)
throws MessagingException
- Specified by:
delete in class Folder
- Throws:
MessagingException
exists
public boolean exists()
throws MessagingException
- Specified by:
exists in class Folder
- Throws:
MessagingException
expunge
public Message[] expunge()
throws MessagingException
- Specified by:
expunge in class Folder
- Throws:
MessagingException
getFolder
public Folder getFolder(String arg0)
throws MessagingException
- Specified by:
getFolder in class Folder
- Throws:
MessagingException
getMessage
public Message getMessage(int messageNumber)
throws MessagingException
- Specified by:
getMessage in class Folder
- Throws:
MessagingException
getMessageCount
public int getMessageCount()
throws MessagingException
- Specified by:
getMessageCount in class Folder
- Throws:
MessagingException
getFullName
public String getFullName()
- Specified by:
getFullName in class Folder
getName
public String getName()
- Specified by:
getName in class Folder
getParent
public Folder getParent()
throws MessagingException
- Specified by:
getParent in class Folder
- Throws:
MessagingException
getPermanentFlags
public Flags getPermanentFlags()
- Specified by:
getPermanentFlags in class Folder
getSeparator
public char getSeparator()
throws MessagingException
- Specified by:
getSeparator in class Folder
- Throws:
MessagingException
getType
public int getType()
throws MessagingException
- Specified by:
getType in class Folder
- Throws:
MessagingException
hasNewMessages
public boolean hasNewMessages()
throws MessagingException
- Specified by:
hasNewMessages in class Folder
- Throws:
MessagingException
isOpen
public boolean isOpen()
- Specified by:
isOpen in class Folder
list
public Folder[] list(String arg0)
throws MessagingException
- Specified by:
list in class Folder
- Throws:
MessagingException
open
public void open(int arg0)
throws MessagingException
- Specified by:
open in class Folder
- Throws:
MessagingException
renameTo
public boolean renameTo(Folder arg0)
throws MessagingException
- Specified by:
renameTo in class Folder
- Throws:
MessagingException
getMessageByUID
public Message getMessageByUID(long uid)
throws MessagingException
- Specified by:
getMessageByUID in interface UIDFolder
- Throws:
MessagingException
getMessagesByUID
public Message[] getMessagesByUID(long[] uids)
throws MessagingException
- Specified by:
getMessagesByUID in interface UIDFolder
- Throws:
MessagingException
getMessagesByUID
public Message[] getMessagesByUID(long start,
long end)
throws MessagingException
- Specified by:
getMessagesByUID in interface UIDFolder
- Throws:
MessagingException
getUID
public long getUID(Message message)
throws MessagingException
- Specified by:
getUID in interface UIDFolder
- Throws:
MessagingException
getUIDValidity
public long getUIDValidity()
throws MessagingException
- Specified by:
getUIDValidity in interface UIDFolder
- Throws:
MessagingException
This software is published under the BSD license. Copyright © 2003-2010, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.