@Path(value="/mail_folders/{partition}/{mailboxRoot}") public interface IMailboxFolders extends IBaseMailboxFolders
partition
: vagrant_vmw (domain name with dots replaced by '_')
mailbox_root
: user.log^in (for a user with the login log.in) or
shar^ed (for a mailshare with the name shar.ed).
The uid of items returned by this API are sometime called the uniqueid of the
mailbox folders. You can pass those uid(s) to
MailEventAddresses.mailboxContentChanged(String)
to obtain the vertx
eventbus address that will receive notifications when the content of a folder
changes.
This API is tied to a container of MailboxFolder
with a changelog.
Modifier and Type | Method and Description |
---|---|
ItemIdentifier |
createBasic(MailboxFolder value) |
ItemIdentifier |
createForHierarchy(long hierId,
MailboxFolder value) |
void |
deepDelete(long id)
Also delete all known child folders.
|
void |
deleteById(long id) |
void |
emptyFolder(long id)
Empty an email folder including child folders.
|
ItemValue<MailboxFolder> |
getCompleteById(long id) |
ImportMailboxItemsStatus |
importItems(long folderDestinationId,
ImportMailboxItemSet mailboxItems)
Import MailboxItems from a source folder describe
ImportMailboxItemSet.mailboxFolderId
Source and destination folders must be in the same subtree |
void |
markFolderAsRead(long id)
Mark folder as read (does not include sub-folders).
|
void |
removeMessages(long id)
Empty an email folder keeping child folders.
|
Ack |
updateById(long id,
MailboxFolder value) |
all, byName, getComplete, getMultipleById, searchItems
allIds, changeset, changesetById, containerChangelog, filteredChangesetById, getVersion, itemChangelog
@GET @Path(value="{id}/completeById") ItemValue<MailboxFolder> getCompleteById(@PathParam(value="id") long id)
@POST @Path(value="id/{id}") Ack updateById(@PathParam(value="id") long id, MailboxFolder value)
@PUT @Path(value="id/{hierarchyId}") ItemIdentifier createForHierarchy(@PathParam(value="hierarchyId") long hierId, MailboxFolder value)
hierId
- the numerical id we want to end up with in
IContainersFlatHierarchy
value
- the folder to create@PUT ItemIdentifier createBasic(MailboxFolder value)
value
- the folder to create@DELETE @Path(value="id/{id}") void deleteById(@PathParam(value="id") long id)
@DELETE @Path(value="deep/{id}") void deepDelete(@PathParam(value="id") long id)
id
- the folder identifier@DELETE @Path(value="empty/{id}") void emptyFolder(@PathParam(value="id") long id)
id
- the folder identifier@DELETE @Path(value="removeMessages/{id}") void removeMessages(@PathParam(value="id") long id)
id
- the folder identifier@PUT @Path(value="markAsRead/{id}") void markFolderAsRead(@PathParam(value="id") long id)
id
- the folder identifier@PUT @Path(value="importItems/{folderDestinationId}") ImportMailboxItemsStatus importItems(@PathParam(value="folderDestinationId") long folderDestinationId, ImportMailboxItemSet mailboxItems) throws ServerFault
ImportMailboxItemSet.mailboxFolderId
Source and destination folders must be in the same subtreefolderDestinationId
- mailboxItems
- ServerFault
Copyright © 2021. All Rights Reserved.