foldersattribute of that email address and are retrieved along with the email address.
listEmailFoldersForEmailAddressIdmethod by passing in the
idof the email address to query. This returns a
ListOutputobject with the list of email folder objects which contain information used to identify each folder and to facilitate moving of messages between folders. An
EmailFolderFiltercan be optionally provided to the input to filter the results.
EmailFolderobject contains useful information such as the name of the folder, the total size of all messages assigned to the folder and the total count of unseen messages assigned to the folder.
updateEmailMessagesmethod to move a message to another folder is:
createDraftEmailMessagemethod. This method takes in a
rfc822Datainput property which contains the email message content formatted under RFC 822 as well as the
senderEmailAddressIdinput property which must match the identifier of the email addess from the
fromfield in the RFC 822 data. A call to this method returns metadata of the saved draft. Draft email message data provides the ID of the draft and an
updatedAttimestamp representing the last time the draft. was saved.
updateDraftEmailMessagemethod to update a previously created and saved draft email message. The input requires the
idof the previously saved draft to perform the update. It is a requirement that the entire message content be replaced with an updated version as part of the
rfc822Datainput property. A call to this method returns the
idof the draft that was updated which should match the
idprovided in the input.
deleteDraftEmailMessagesmethod by passing in one or more draft message identifiers and the
idof the email address associated with the drafts.
BatchOperationResulttype is returned from this method call which contains the status of the batch delete operation. Three possible statuses can be returned:
getDraftEmailMessagemethod. This method takes in the
idof the draft to retrieve as well as the
idof the email address that is associated with the draft. This method returns the draft email message data if it exists.
listDraftEmailMessageMetadatato retrieve a list of all the metadata of the draft email messages associated with an email address. The metadata returned in the list can be used to retrieve individual draft email message content, perform an update to an already saved draft, or identify which drafts to perform full retrieval of based on
listDraftEmailMessageIdsto retrieve a list of all the identifiers of the draft email messages associated with an email address. The identifiers returned in the list can be used to retrieve individual draft email message content or perform an update to an already saved draft.