Enum AuthoredDeleteEmailDisposition
- Namespace
- MailFathom.Domain.Emails
- Assembly
- MailFathom.Domain.dll
States what becomes of the local copy of an email MailFathom itself deleted on the mail server.
public enum AuthoredDeleteEmailDisposition
Fields
EraseLocalCopy = 2Removes the local row together with its raw MIME and everything derived from it.
Nothing of the email survives locally, which is what deleting a message means, so it is the default: every deletion setting of an account defaults to deleting completely. The removal happens once the server is seen to no longer serve the message as live — gone, or flagged
\Deletedby a delete that issued no expunge — and is deliberate. Where the server still holds the message and somebody removes the flag, synchronization fetches it again rather than leaving it lost.RetainLocalCopy = 0Keeps the local email readable and searchable although the server no longer holds it.
The remote occurrence is gone and the local copy is not, which is what separates freeing space on the server from forgetting the mail. Nothing is destroyed, and an account asks for it by name.
RetainTombstone = 1Keeps the local row as a tombstone that every mailbox query excludes.
The record that the email existed survives and the mail itself stops being reachable, which is what makes an authored delete auditable without leaving the message readable. It is the exact counterpart of RetainTombstone.
Remarks
It is a separate decision from RemotelyDeletedEmailDisposition because the two answer for different acts. That one governs a disappearance somebody else caused and MailFathom observed afterwards; this one governs a deletion the mailbox user authored through MailFathom. Inheriting one value for both would make an account configured to erase what its server loses also erase what MailFathom was just told to delete — which is precisely the case where the user may have wanted the opposite, because deleting on the server is how mail is kept while quota is freed.
The value is resolved when the mutation is written down and travels on its record, so changing the setting while a delete is in flight governs the deletes authored after the change and leaves that one exactly as it was begun.