C# Class Microsoft.Legal.MatterCenter.Utility.MailMessageParser

Stores all MIME decoded information of a received email. One email might consist of several MIME entities, which have a very similar structure to an email. A RxMailMessage can be a top most level email or a MIME entity the emails contains. According to various RFCs, MIME entities can contain other MIME entities recursively. However, they usually need to be mapped to alternative views and attachments, which are non recursive. MailMessageParser inherits from System.Net.MailMessage, but provides additional receiving related information.
Inheritance: System.Net.Mail.MailMessage
Afficher le fichier Open project: Microsoft/mattercenter Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
CreateChildEntity ( ) : MailMessageParser

Creates an empty child MIME entity from the parent MIME entity. An email can consist of several MIME entities. A entity has the same structure of email.

CreateFromFile ( MailMimeReader mimeDecoder, string mailPath ) : MailMessageParser

Creates Mail message object from file.

CreateFromFile ( string mailPath ) : MailMessageParser

Creates Mail message object from file.

CreateFromStream ( MailMimeReader mimeDecoder, Stream emailStream ) : MailMessageParser

Creates Mail message object from stream.

CreateFromStream ( Stream emailStream ) : MailMessageParser

Creates Mail message object from stream.

GetMailFileProperties ( System fileStream, string>.Dictionary mailProperties ) : string>.Dictionary

Gets the uploaded email file properties....

MailMessageParser ( ) : System

Initializes a new instance of the MailMessageParser class

SetContentDisposition ( string headerLineContent ) : void

Set all content disposition related fields.

SetContentTypeFields ( string mailContentType ) : void

Sets the content type fields.

Method Details

CreateChildEntity() public méthode

Creates an empty child MIME entity from the parent MIME entity. An email can consist of several MIME entities. A entity has the same structure of email.
public CreateChildEntity ( ) : MailMessageParser
Résultat MailMessageParser

CreateFromFile() public static méthode

Creates Mail message object from file.
public static CreateFromFile ( MailMimeReader mimeDecoder, string mailPath ) : MailMessageParser
mimeDecoder MailMimeReader read MIME object
mailPath string EML file path.
Résultat MailMessageParser

CreateFromFile() public static méthode

Creates Mail message object from file.
public static CreateFromFile ( string mailPath ) : MailMessageParser
mailPath string EML file path.
Résultat MailMessageParser

CreateFromStream() public static méthode

Creates Mail message object from stream.
public static CreateFromStream ( MailMimeReader mimeDecoder, Stream emailStream ) : MailMessageParser
mimeDecoder MailMimeReader read MIME object
emailStream Stream The email stream.
Résultat MailMessageParser

CreateFromStream() public static méthode

Creates Mail message object from stream.
public static CreateFromStream ( Stream emailStream ) : MailMessageParser
emailStream Stream email stream.
Résultat MailMessageParser

GetMailFileProperties() public static méthode

Gets the uploaded email file properties....
public static GetMailFileProperties ( System fileStream, string>.Dictionary mailProperties ) : string>.Dictionary
fileStream System The file stream.
mailProperties string>.Dictionary The mail properties.
Résultat string>.Dictionary

MailMessageParser() public méthode

Initializes a new instance of the MailMessageParser class
public MailMessageParser ( ) : System
Résultat System

SetContentDisposition() public méthode

Set all content disposition related fields.
public SetContentDisposition ( string headerLineContent ) : void
headerLineContent string Content of the mail header line.
Résultat void

SetContentTypeFields() public méthode

Sets the content type fields.
public SetContentTypeFields ( string mailContentType ) : void
mailContentType string content type string.
Résultat void