C# Class ActiveUp.Net.Mail.Parser

Mostra file Open project: slavat/MailSystem.NET

Public Methods

Method Description
Clean ( string input ) : string
Fold ( string input ) : string
ParseAddress ( string input ) : ActiveUp.Net.Mail.Address
ParseAddresses ( string input ) : ActiveUp.Net.Mail.AddressCollection

Parses a string containing addresses in the following formats : "John Doe" <[email protected]>,"Mike Johns" <[email protected]> "John Doe" <[email protected]>;"Mike Johns" <[email protected]> <[email protected]> [email protected]

ParseAsUniversalDateTime ( string input ) : System.DateTime
ParseHeader ( Array data ) : ActiveUp.Net.Mail.Header

Parses a Header object from a byte array.

ParseHeader ( System.IO.MemoryStream inputStream ) : ActiveUp.Net.Mail.Header

Parses a MemoryStream's content to a Header object.

ParseHeader ( string filePath ) : ActiveUp.Net.Mail.Header

Parses a Header from a file to a Header object.

ParseHeader ( Header &header ) : void
ParseHeaderString ( string data ) : Header

Parses a Header from a string formatted accordingly to the RFC822.

ParseHeaderv1 ( string filePath ) : Headerv1
ParseMessage ( System.IO.MemoryStream inputStream ) : Message

Parses a MemoryStream's content to a Message object.

ParseMessage ( string data ) : Message

Parses a Message from a string formatted accordingly to the RFC822.

ParseMessageFromFile ( string filePath ) : Message
ParseMessageFromFile ( string filePath, X509Certificate2Collection extraCertificates ) : Message

Parses a message from a file to a Message object.

ParseMimeTypedAndEncodedContent ( string data ) : MimeTypedAndEncodedContent
ParsePart ( string data, X509Certificate2Collection certificates ) : MimePart
ParseTrace ( string input ) : TraceInfo
ParseTraces ( Array input ) : TraceInfoCollection
Unfold ( string input ) : string

Private Methods

Method Description
DecodeMessage ( Message &message ) : void
DistributeParts ( Message &message ) : void
FormatFieldName ( string fieldName ) : string
GetContentDisposition ( string input ) : ActiveUp.Net.Mail.ContentDisposition
GetContentType ( string input ) : ActiveUp.Net.Mail.ContentType
GetMonth ( string month ) : int
InvGetMonth ( int month ) : string
ParseHeaderv1 ( Headerv1 &header ) : void
ParseMessage ( Array data ) : Message
ParseMessage ( Message &message, X509Certificate2Collection certificates ) : void
ParseMultipartContainer ( MimePart part ) : MultipartContainer
RemoveWhiteSpaces ( string input ) : string
ReplaceTimeZone ( string input ) : string
SetBodies ( Message &message ) : void

Method Details

Clean() public static method

public static Clean ( string input ) : string
input string
return string

Fold() public static method

public static Fold ( string input ) : string
input string
return string

ParseAddress() public static method

public static ParseAddress ( string input ) : ActiveUp.Net.Mail.Address
input string
return ActiveUp.Net.Mail.Address

ParseAddresses() public static method

Parses a string containing addresses in the following formats : "John Doe" <[email protected]>,"Mike Johns" <[email protected]> "John Doe" <[email protected]>;"Mike Johns" <[email protected]> <[email protected]> [email protected]
public static ParseAddresses ( string input ) : ActiveUp.Net.Mail.AddressCollection
input string A string containing addresses in the formats desribed above.
return ActiveUp.Net.Mail.AddressCollection

ParseAsUniversalDateTime() public static method

public static ParseAsUniversalDateTime ( string input ) : System.DateTime
input string
return System.DateTime

ParseHeader() public static method

Parses a Header object from a byte array.
public static ParseHeader ( Array data ) : ActiveUp.Net.Mail.Header
data Array The byte array containing the Header data to be parsed.
return ActiveUp.Net.Mail.Header

ParseHeader() public static method

Parses a MemoryStream's content to a Header object.
public static ParseHeader ( System.IO.MemoryStream inputStream ) : ActiveUp.Net.Mail.Header
inputStream System.IO.MemoryStream The MemoryStream containing the Header data to be parsed.
return ActiveUp.Net.Mail.Header

ParseHeader() public static method

Parses a Header from a file to a Header object.
public static ParseHeader ( string filePath ) : ActiveUp.Net.Mail.Header
filePath string The path of the file to be parsed.
return ActiveUp.Net.Mail.Header

ParseHeader() public static method

public static ParseHeader ( Header &header ) : void
header Header
return void

ParseHeaderString() public static method

Parses a Header from a string formatted accordingly to the RFC822.
public static ParseHeaderString ( string data ) : Header
data string The string containing the Header data to be parsed.
return Header

ParseHeaderv1() public static method

public static ParseHeaderv1 ( string filePath ) : Headerv1
filePath string
return Headerv1

ParseMessage() public static method

Parses a MemoryStream's content to a Message object.
public static ParseMessage ( System.IO.MemoryStream inputStream ) : Message
inputStream System.IO.MemoryStream The MemoryStream containing the Header data to be parsed.
return Message

ParseMessage() public static method

Parses a Message from a string formatted accordingly to the RFC822.
public static ParseMessage ( string data ) : Message
data string The string containing the message data to be parsed.
return Message

ParseMessageFromFile() public static method

public static ParseMessageFromFile ( string filePath ) : Message
filePath string
return Message

ParseMessageFromFile() public static method

Parses a message from a file to a Message object.
public static ParseMessageFromFile ( string filePath, X509Certificate2Collection extraCertificates ) : Message
filePath string The path of the file to be parsed.
extraCertificates X509Certificate2Collection
return Message

ParseMimeTypedAndEncodedContent() public static method

public static ParseMimeTypedAndEncodedContent ( string data ) : MimeTypedAndEncodedContent
data string
return MimeTypedAndEncodedContent

ParsePart() public static method

public static ParsePart ( string data, X509Certificate2Collection certificates ) : MimePart
data string
certificates X509Certificate2Collection
return MimePart

ParseTrace() public static method

public static ParseTrace ( string input ) : TraceInfo
input string
return TraceInfo

ParseTraces() public static method

public static ParseTraces ( Array input ) : TraceInfoCollection
input Array
return TraceInfoCollection

Unfold() public static method

public static Unfold ( string input ) : string
input string
return string