public class MailStore
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_FOLDERNAME |
static java.lang.String |
IMAP_MODE |
static java.lang.String |
POP3_MODE |
Constructor and Description |
---|
MailStore(MailImporterConfig config)
Utility class for mail store management.
|
Modifier and Type | Method and Description |
---|---|
void |
closeFolder()
Close current folder.
|
void |
closeStore()
Close current store.
|
javax.mail.Message[] |
getMessages()
Get messages from mail store.
|
void |
openFolder(java.lang.String name)
Open mail folder with given name and set as current folder.
|
void |
openStore()
Open mail store.
|
public static final java.lang.String POP3_MODE
public static final java.lang.String IMAP_MODE
public static final java.lang.String DEFAULT_FOLDERNAME
public MailStore(MailImporterConfig config)
public void openStore() throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public javax.mail.Message[] getMessages() throws javax.mail.MessagingException
javax.mail.MessagingException
public void openFolder(java.lang.String name) throws org.openmdx.base.exception.ServiceException
name
- org.openmdx.base.exception.ServiceException
public void closeFolder()
public void closeStore()
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.