Class MboxStorageReader

MboxStorageReader class

A base class for any mbox-based mail storage reader.

public abstract class MboxStorageReader : IDisposable

Properties

NameDescription
BaseStream { get; }Gets the base stream.
CurrentDataSize { get; }Gets the number of bytes that is read by ReadNextMessage method.

Methods

NameDescription
static CreateReader(Stream, MboxLoadOptions)Creates the instance of reader.
static CreateReader(string, MboxLoadOptions)Creates the instance of reader.
static CreateReader(Stream, MboxLoadOptions, CancellationToken)Creates the instance of reader.
static CreateReader(string, MboxLoadOptions, CancellationToken)Creates the instance of reader.
Dispose()Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
EnumerateMessageInfo()Exposes the enumerator, which supports an iteration of messages in storage.
EnumerateMessages()Exposes the enumerator, which supports an iteration of messages in storage.
EnumerateMessages(EmlLoadOptions)Exposes the enumerator, which supports an iteration of messages in storage.
ExtractMessage(string, EmlLoadOptions)Get the message from MBOX.
abstract GetTotalItemsCount()Returns the number of messages in a storage.
abstract NextMessage()Gets the next message info.
abstract ReadNextMessage()Reads the next message from underlying storage stream.
abstract ReadNextMessage(EmlLoadOptions)Reads the next message from underlying storage stream.
abstract ReadNextMessage(out string)Reads the next message from underlying storage stream.
abstract ReadNextMessage(out string, EmlLoadOptions)Reads the next message from underlying storage stream.
SplitInto(long, string)Splits the mbox storage into less sized parts.
SplitInto(long, string, string)

Events

NameDescription
event EmlCopiedEvent that occurs after successful copy of a MailMessage object within the SplitInto method.
event EmlCopyingEvent that occurs before the MailMessage object copy process, within the SplitInto method.
event MboxFileCreatedEvent that occurs when a new MBOX file is created during the SplitInto method.
event MboxFileFilledEvent that occurs after filling an MBOX file with data within the SplitInto method.

See Also