MboxStorageReader Class

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

Namespace:  Aspose.Email.Storage.Mbox
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.11
Syntax
public abstract class MboxStorageReader : IDisposable

The MboxStorageReader type exposes the following members.

Constructors
  NameDescription
Protected methodMboxStorageReader(Stream, MboxLoadOptions)
Initializes a new instance of the MboxStorageReader class.
Protected methodMboxStorageReader(Stream, Boolean) Obsolete.
Initializes a new instance of the MboxStorageReader class.
Protected methodMboxStorageReader(String, MboxLoadOptions)
Initializes a new instance of the MboxStorageReader class.
Protected methodMboxStorageReader(String, Boolean) Obsolete.
Initializes a new instance of the MboxStorageReader class.
Properties
  NameDescription
Public propertyBaseStream
Gets the base stream.
Public propertyCurrentDataSize
Gets the number of bytes that is read by ReadNextMessage method.
Methods
  NameDescription
Protected methodStatic memberByteArrayStartsFromMarker
Checks whether the array starts from given marker.
Public methodStatic memberCreateReader(Stream, MboxLoadOptions)
Creates the instance of reader.
Public methodStatic memberCreateReader(Stream, Boolean) Obsolete.
Creates the instance of reader.
Public methodStatic memberCreateReader(String, MboxLoadOptions)
Creates the instance of reader.
Public methodStatic memberCreateReader(String, Boolean) Obsolete.
Creates the instance of reader.
Public methodStatic memberCreateReader(Stream, MboxLoadOptions, CancellationToken)
Creates the instance of reader.
Public methodStatic memberCreateReader(String, MboxLoadOptions, CancellationToken)
Creates the instance of reader.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources
Public methodEnumerateMessages
Exposes the enumerator, which supports an iteration of messages in storage.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetTotalItemsCount
Returns the number of messages in a storage.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodStatic memberReadLine
Reads the line from stream.
Public methodReadNextMessage
Reads the next message from underlying storage stream.
Public methodReadNextMessage(String)
Reads the next message from underlying storage stream.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Fields
  NameDescription
Protected fieldStatic memberEmptyFromMarkerCR
Protected fieldStatic memberEmptyFromMarkerCRLF
Protected fieldStatic memberEmptyFromMarkerLF
Protected fieldStatic memberFromMarker
"From " signature, indicates a start of the message.
Protected fieldStatic memberMboxoMarker
The mbox format uses a single blank line followed by the string 'From ' (with a space) to delimit messages. In mboxo format sender's email address in message delimiter is replaced by the constant string '???@???', i.e. 'From ???@???'
Protected fieldpreferredTextEncoding
See Also