Enum EmailTimelineDirection
- Namespace
- MailFathom.Domain.Emails
- Assembly
- MailFathom.Domain.dll
Selects which end of a mailbox timeline a page is read from.
public enum EmailTimelineDirection
Fields
NewestFirst = 0Reads the most recently received message first, placing undated mail after every dated message.
OldestFirst = 1Reads the least recently received message first, placing undated mail before every dated message.
Remarks
The two directions are exact reverses of one another rather than two independent orderings, which is what keeps a page boundary meaningful in both: a cursor taken while reading one direction names the same row in the other, and the timeline index serves the second direction as a backward scan of itself. Where undated mail lands therefore follows from the direction instead of being a separate decision — last when the newest is read first, first when the oldest is.