C# Class MailKit.Envelope

A message envelope containing a brief summary of the message.
The envelope of a message contains information such as the date the message was sent, the subject of the message, the sender of the message, who the message was sent to, which message(s) the message may be in reply to, and the message id.
Mostrar archivo Open project: jstedfast/MailKit Class Usage Examples

Public Methods

Method Description
Envelope ( ) : System

Initializes a new instance of the MailKit.Envelope class.

Creates a new Envelope.

ToString ( ) : string

Returns a System.String that represents the current MailKit.Envelope.

The returned string can be parsed by TryParse(string,out Envelope).

The syntax of the string returned, while similar to IMAP's ENVELOPE syntax, is not completely compatible.
TryParse ( string text, Envelope &envelope ) : bool

Tries to parse the given text into a new MailKit.Envelope instance.

Parses an Envelope value from the specified text.

This syntax, while similar to IMAP's ENVELOPE syntax, is not completely compatible.

Private Methods

Method Description
Encode ( StringBuilder builder ) : void
EncodeAddressList ( StringBuilder builder, InternetAddressList list ) : void
EncodeMailbox ( StringBuilder builder, MimeKit.MailboxAddress mailbox ) : void
TryParse ( string text, int &index, Envelope &envelope ) : bool
TryParse ( string text, int &index, InternetAddressList &list ) : bool
TryParse ( string text, int &index, MimeKit.MailboxAddress &mailbox ) : bool
TryParse ( string text, int &index, string &nstring ) : bool

Method Details

Envelope() public method

Initializes a new instance of the MailKit.Envelope class.
Creates a new Envelope.
public Envelope ( ) : System
return System

ToString() public method

Returns a System.String that represents the current MailKit.Envelope.

The returned string can be parsed by TryParse(string,out Envelope).

The syntax of the string returned, while similar to IMAP's ENVELOPE syntax, is not completely compatible.
public ToString ( ) : string
return string

TryParse() public static method

Tries to parse the given text into a new MailKit.Envelope instance.

Parses an Envelope value from the specified text.

This syntax, while similar to IMAP's ENVELOPE syntax, is not completely compatible.
/// is null. ///
public static TryParse ( string text, Envelope &envelope ) : bool
text string The text to parse.
envelope Envelope The parsed envelope.
return bool