ImapClient.FetchMessage

FetchMessage(IConnection, int)

Fetches the message

public MailMessage FetchMessage(IConnection connection, int sequenceNumber)
ParameterTypeDescription
connectionIConnectionConnection to a server
sequenceNumberInt32The sequence number of message

Return Value

MailMessage that represents e-mail message

See Also


FetchMessage(IConnection, int, bool)

Fetches the message

public MailMessage FetchMessage(IConnection connection, int sequenceNumber, bool ignoreAttachment)
ParameterTypeDescription
connectionIConnectionConnection to a server
sequenceNumberInt32The sequence number of message
ignoreAttachmentBooleanA value that defines whether the attachments should not be loaded. If it is set to true, then only message headers, message body and attachment information are fetched. Attachment content is not loaded

Return Value

MailMessage that represents e-mail message

See Also


FetchMessage(int)

Fetches the message

public MailMessage FetchMessage(int sequenceNumber)
ParameterTypeDescription
sequenceNumberInt32The sequence number of message

Return Value

MailMessage that represents e-mail message

See Also


FetchMessage(int, bool)

Fetches the message

public MailMessage FetchMessage(int sequenceNumber, bool ignoreAttachment)
ParameterTypeDescription
sequenceNumberInt32The sequence number of message
ignoreAttachmentBooleanA value that defines whether the attachments should not be loaded. If it is set to true, then only message headers, message body and attachment information are fetched. Attachment content is not loaded

Return Value

MailMessage that represents e-mail message

See Also


FetchMessage(IConnection, string)

Fetches the message

public MailMessage FetchMessage(IConnection connection, string uniqueId)
ParameterTypeDescription
connectionIConnectionConnection to a server
uniqueIdStringThe unique id of message

Return Value

MailMessage that represents e-mail message

See Also


FetchMessage(string)

Fetches the message

public MailMessage FetchMessage(string uniqueId)
ParameterTypeDescription
uniqueIdStringThe unique id of message

Return Value

MailMessage that represents e-mail message

See Also