Aspose::Email::Storage::Mbox::MboxrdStorageWriter Class Referencefinal

Represents mboxrd format storage writer, this format is being used by Thunderbird and other mail clients. More...

Inherits Aspose::Email::Storage::Mbox::MboxStorageWriter.

Public Member Functions

 MboxrdStorageWriter (System::SharedPtr< System::IO::Stream > stream, bool leaveOpen)
 Initializes a new instance of the MboxrdStorageWriter class. More...
 
 MboxrdStorageWriter (System::String fileName, bool leaveOpen)
 Initializes a new instance of the MboxrdStorageWriter class. More...
 
System::String WriteMessage (System::SharedPtr< MailMessage > message, System::String &fromMarker) override
 Writes the message to underlying storage stream. More...
 
System::String WriteMessage (System::SharedPtr< MailMessage > message) override
 Writes the message to underlying storage stream. More...
 
- Public Member Functions inherited from Aspose::Email::Storage::Mbox::MboxStorageWriter
System::SharedPtr< System::IO::Stream > get_BaseStream () const
 Gets the base stream. More...
 
void Dispose () override
 Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Aspose::Email::Storage::Mbox::MboxStorageWriter
 MboxStorageWriter (System::SharedPtr< System::IO::Stream > stream, bool leaveOpen)
 Initializes a new instance of the MboxStorageWriter class. More...
 
 MboxStorageWriter (System::String fileName, bool leaveOpen)
 Initializes a new instance of the MboxStorageWriter class. More...
 
virtual void Dispose (bool disposing)
 Releases unmanaged and - optionally - managed resources More...
 

Detailed Description

Represents mboxrd format storage writer, this format is being used by Thunderbird and other mail clients.

Constructor & Destructor Documentation

◆ MboxrdStorageWriter() [1/2]

Aspose::Email::Storage::Mbox::MboxrdStorageWriter::MboxrdStorageWriter ( System::SharedPtr< System::IO::Stream >  stream,
bool  leaveOpen 
)

Initializes a new instance of the MboxrdStorageWriter class.

Parameters
streamThe stream.
leaveOpenif set to true leaves the underlying stream open after disposing.
Exceptions
ArgumentNullExceptionIf given stream is null.

◆ MboxrdStorageWriter() [2/2]

Aspose::Email::Storage::Mbox::MboxrdStorageWriter::MboxrdStorageWriter ( System::String  fileName,
bool  leaveOpen 
)

Initializes a new instance of the MboxrdStorageWriter class.

Parameters
fileNameName of the file.
leaveOpenif set to true leaves the underlying stream open after disposing.
Exceptions
ArgumentNullExceptionIf filename is null or empty.

Member Function Documentation

◆ WriteMessage() [1/2]

System::String Aspose::Email::Storage::Mbox::MboxrdStorageWriter::WriteMessage ( System::SharedPtr< MailMessage message)
overridevirtual

Writes the message to underlying storage stream.

Parameters
messageThe message to write to.
Returns
The string identifier of added message.

Implements Aspose::Email::Storage::Mbox::MboxStorageWriter.

◆ WriteMessage() [2/2]

System::String Aspose::Email::Storage::Mbox::MboxrdStorageWriter::WriteMessage ( System::SharedPtr< MailMessage message,
System::String &  fromMarker 
)
overridevirtual

Writes the message to underlying storage stream.

Parameters
messageThe message to write to.
fromMarkerGets the From Marker while writing the MBox Storage file.
Returns
The string identifier of added message.

Implements Aspose::Email::Storage::Mbox::MboxStorageWriter.