C# Class LumiSoft.Net.Mime.Mime

Class for creating,parsing,modifing rfc 2822 mime messages.
Message examples: Simple message: //--- Beginning of message From: [email protected] To: [email protected] Subject: Message subject. Content-Type: text/plain Message body text. Bla blaa blaa,blaa. //--- End of message In simple message MainEntity is whole message. Message with attachments: //--- Beginning of message From: [email protected] To: [email protected] Subject: Message subject. Content-Type: multipart/mixed; boundary="multipart_mixed" --multipart_mixed /* text entity */ Content-Type: text/plain Message body text. Bla blaa blaa,blaa. --multipart_mixed /* attachment entity */ Content-Type: application/octet-stream attachment_data --multipart_mixed-- //--- End of message MainEntity is multipart_mixed entity and text and attachment entities are child entities of MainEntity.
Mostra file Open project: jeske/StepsDB-alpha Class Usage Examples

Public Methods

Method Description
Mime ( ) : System

Default constructor.

Parse ( Stream stream ) : Mime

Parses mime message from stream.

Parse ( byte data ) : Mime

Parses mime message from byte[] data.

Parse ( string fileName ) : Mime

Parses mime message from file.

ToByteData ( ) : byte[]

Stores mime message to byte[].

ToFile ( string fileName ) : void

Stores mime message to specified file.

ToStream ( Stream storeStream ) : void

Stores mime message to specified stream. Stream position stays where mime writing ends.

ToStringData ( ) : string

Stores mime message to string.

Private Methods

Method Description
GetEntities ( MimeEntityCollection entities, ArrayList allEntries ) : void

Gets mime entities, including nested entries.

Method Details

Mime() public method

Default constructor.
public Mime ( ) : System
return System

Parse() public static method

Parses mime message from stream.
public static Parse ( Stream stream ) : Mime
stream Stream Mime message stream.
return Mime

Parse() public static method

Parses mime message from byte[] data.
public static Parse ( byte data ) : Mime
data byte Mime message data.
return Mime

Parse() public static method

Parses mime message from file.
public static Parse ( string fileName ) : Mime
fileName string Mime message file.
return Mime

ToByteData() public method

Stores mime message to byte[].
public ToByteData ( ) : byte[]
return byte[]

ToFile() public method

Stores mime message to specified file.
public ToFile ( string fileName ) : void
fileName string File name.
return void

ToStream() public method

Stores mime message to specified stream. Stream position stays where mime writing ends.
public ToStream ( Stream storeStream ) : void
storeStream Stream Stream where to store mime message.
return void

ToStringData() public method

Stores mime message to string.
public ToStringData ( ) : string
return string