Enum EmailContentDefect
- Namespace
- MailFathom.Application.EmailContent.Repair
- Assembly
- MailFathom.Application.dll
Names what is wrong with the locally stored content of one email.
public enum EmailContentDefect
Fields
ByteLengthMismatch = 1The stored payload is not as long as the length recorded beside it when it was written.
HashMismatch = 2The stored payload does not hash to the digest recorded beside it when it was written.
Missing = 0The email is recorded as having its content stored, and no content is stored for it.
Unreadable = 3The stored payload matches what was recorded for it and still yields no message a reader can render.
Remarks
The four values stay distinct because they say different things to whoever repairs them: three of them mean the stored bytes have to be fetched again, while Unreadable means bytes that arrived intact cannot be parsed, which a second fetch of the same message may well reproduce. Collapsing them into one "broken" marker would hide a message that will never become readable behind a queue of ones that will.