public class MailStore extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_FOLDERNAME |
static String |
IMAP_MODE |
static 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(String name)
Open mail folder with given name and set as current folder.
|
void |
openStore()
Open mail store.
|
public static final String POP3_MODE
public static final String IMAP_MODE
public static final String DEFAULT_FOLDERNAME
public MailStore(MailImporterConfig config)
public void openStore()
throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceExceptionpublic javax.mail.Message[] getMessages()
throws javax.mail.MessagingException
javax.mail.MessagingExceptionpublic void openFolder(String name) throws org.openmdx.base.exception.ServiceException
name - org.openmdx.base.exception.ServiceExceptionpublic 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.