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
storedEmailIdStoredEmailIdThe local email being removed.
occurrenceEmailOccurrenceIdWhere the email is now.
requesterMailboxMutationRequesterThe authored act asking.
localDispositionAuthoredDeleteEmailDispositionWhat becomes of the local copy once the server no longer serves the message as live.
serverDispositionAuthoredDeleteServerDispositionWhether 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
occurrenceorrequesteris null.- ArgumentOutOfRangeException
Thrown when either disposition names no declared value.