Namespace DRIT.Mail.Rfc.Mbox
Classes
MboxFormatException
Thrown when an MBOX stream is malformed and cannot be recovered by the tolerant reader.
MboxFromLine
A parsed MBOX "From " delimiter line (RFC 4155 §2). Carries the envelope sender and the delivery timestamp.
MboxMessageCollection
An in-memory collection of MIME messages loaded from or destined for an MBOX file. Convenience wrapper around MboxReader and MboxWriter. For large archives, prefer the streaming reader/writer directly.
MboxReader
Reads MBOX mailbox files (RFC 4155) from a stream, yielding one MimeMessage per stored message. Reads lazily: the underlying stream is consumed as messages are enumerated, so arbitrarily large archives can be processed without loading the whole file into memory. Not thread-safe.
MboxWriter
Writes MBOX mailbox files (RFC 4155) to a stream. Each message is
preceded by a From line and its body is mboxrd-quoted.
Always emits CRLF line endings. Not thread-safe.