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.
ObjectUnreadable = 4The object this payload was moved into could not be read, or is not what the row records, and the copy the database still holds was served instead.
The odd one out, and deliberately recorded all the same. The reader got the message, so nothing about this email is broken yet — what is broken is the endpoint, or one object in it, and the only reason the read succeeded is that an operator has not yet released the copy the move left behind. Releasing it turns every further read of this message into Missing, which is why the finding is worth a durable note while it is still cheap to act on.
Unreadable = 3The stored payload matches what was recorded for it and still yields no message a reader can render.
Remarks
The values stay distinct because they say different things to whoever repairs them: three of them mean the stored bytes have to be fetched again, Unreadable means bytes that arrived intact cannot be parsed, which a second fetch of the same message may well reproduce, and ObjectUnreadable means nothing is wrong with this email at all until somebody looks at the endpoint. Collapsing them into one "broken" marker would hide a message that will never become readable behind a queue of ones that will.