Table of Contents

Method Delete

Namespace
MailFathom.Domain.Mutations
Assembly
MailFathom.Domain.dll

Delete(StoredEmailId, EmailOccurrenceId, MailboxMutationRequester, AuthoredDeleteEmailDisposition, AuthoredDeleteServerDisposition)

Asks for one email to be removed from the folder it is in.

public static MailboxMutationRequest Delete(StoredEmailId storedEmailId, EmailOccurrenceId occurrence, MailboxMutationRequester requester, AuthoredDeleteEmailDisposition localDisposition, AuthoredDeleteServerDisposition serverDisposition)

Parameters

storedEmailId StoredEmailId

The local email being removed.

occurrence EmailOccurrenceId

Where the email is now.

requester MailboxMutationRequester

The authored act asking.

localDisposition AuthoredDeleteEmailDisposition

What becomes of the local copy once the server no longer serves the message as live.

serverDisposition AuthoredDeleteServerDisposition

Whether the delete expunges the message or only flags it \Deleted.

Returns

MailboxMutationRequest

The request to write down.

Remarks

Both dispositions are parameters rather than something read where the delete completes, because completion happens in a later synchronization run that would read whatever the configuration says by then. Taking it here is what makes the answer the one that was true when the user asked.

Exceptions

ArgumentNullException

Thrown when occurrence or requester is null.

ArgumentOutOfRangeException

Thrown when either disposition names no declared value.