public class EmailManager extends AbstractItemManager
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
static java.lang.String |
SHARED_PREFIX |
static java.lang.String |
USER_PREFIX |
Modifier and Type | Method and Description |
---|---|
void |
delete(BackendSession bs,
java.util.Map<BMFolder,java.util.List<java.lang.Integer>> items) |
boolean |
exists(BackendSession bs,
StoreClient store,
BMFolder folder) |
IMAPByteSource |
fetchMimeStream(BackendSession bs,
BMFolder folder,
java.lang.Integer uid) |
IMAPByteSource |
findAttachment(BackendSession bs,
BMFolder folder,
java.lang.Integer mailUid,
java.lang.String mimePartAddress) |
static EmailManager |
getInstance() |
ListResult |
listAllFolders(BackendSession bs) |
AirSyncBaseResponse |
loadBody(BackendSession bs,
BMFolder folder,
int uid,
BodyOptions options) |
EmailResponse |
loadStructure(BackendSession bs,
BMFolder folder,
int uid) |
java.util.List<MoveItemsResponse.Response> |
moveItems(BackendSession bs,
BMFolder srcFolder,
BMFolder dstFolder,
java.util.List<CollectionItem> items) |
void |
moveToTrash(BackendSession bs,
java.util.Map<BMFolder,java.util.List<java.lang.Integer>> items) |
void |
purgeFolder(BackendSession bs,
BMFolder folder) |
MailboxChanges |
qresync(BackendSession bs,
SyncState state,
BMFolder folder,
StoreClient store,
boolean hasFilterChanged) |
void |
sendEmail(BackendSession bs,
IRenderableMessage email,
java.lang.Boolean saveInSent) |
void |
setAnsweredFlag(BackendSession bs,
BMFolder folder,
java.lang.Integer uid) |
void |
setForwardedFlag(BackendSession bs,
BMFolder folder,
java.lang.Integer uid) |
void |
updateFlags(BackendSession bs,
BMFolder folder,
java.util.HashMap<java.lang.Integer,MSEmail> mails) |
login, loginCyrus
public static final java.lang.String SHARED_PREFIX
public static final java.lang.String USER_PREFIX
protected static final org.slf4j.Logger logger
public static EmailManager getInstance()
public boolean exists(BackendSession bs, StoreClient store, BMFolder folder)
public MailboxChanges qresync(BackendSession bs, SyncState state, BMFolder folder, StoreClient store, boolean hasFilterChanged) throws IMAPException
IMAPException
public EmailResponse loadStructure(BackendSession bs, BMFolder folder, int uid) throws IMAPException, java.io.IOException
bs
- uids
- IMAPException
java.io.IOException
public AirSyncBaseResponse loadBody(BackendSession bs, BMFolder folder, int uid, BodyOptions options) throws IMAPException, java.io.IOException
IMAPException
java.io.IOException
public ListResult listAllFolders(BackendSession bs) throws IMAPException
bs
- IMAPException
public void updateFlags(BackendSession bs, BMFolder folder, java.util.HashMap<java.lang.Integer,MSEmail> mails) throws IMAPException
IMAPException
public void delete(BackendSession bs, java.util.Map<BMFolder,java.util.List<java.lang.Integer>> items) throws IMAPException
IMAPException
public java.util.List<MoveItemsResponse.Response> moveItems(BackendSession bs, BMFolder srcFolder, BMFolder dstFolder, java.util.List<CollectionItem> items) throws IMAPException
IMAPException
public void moveToTrash(BackendSession bs, java.util.Map<BMFolder,java.util.List<java.lang.Integer>> items) throws IMAPException
IMAPException
public IMAPByteSource fetchMimeStream(BackendSession bs, BMFolder folder, java.lang.Integer uid) throws java.io.IOException, IMAPException
java.io.IOException
IMAPException
public void setAnsweredFlag(BackendSession bs, BMFolder folder, java.lang.Integer uid) throws IMAPException
IMAPException
public void setForwardedFlag(BackendSession bs, BMFolder folder, java.lang.Integer uid) throws IMAPException
IMAPException
public void sendEmail(BackendSession bs, IRenderableMessage email, java.lang.Boolean saveInSent) throws java.lang.Exception
java.lang.Exception
public IMAPByteSource findAttachment(BackendSession bs, BMFolder folder, java.lang.Integer mailUid, java.lang.String mimePartAddress) throws IMAPException
IMAPException
public void purgeFolder(BackendSession bs, BMFolder folder) throws IMAPException
IMAPException
Copyright © 2021. All Rights Reserved.