ImapClient.SaveMessage

SaveMessage(IConnection, int, Stream)

Downloads the message with the specified sequence number and writes its data into a supplied stream

public void SaveMessage(IConnection connection, int sequenceNumber, Stream resultStream)
ParameterTypeDescription
connectionIConnectionConnection to a server
sequenceNumberInt32The sequence number of the message
resultStreamStreamStream that will receive the message

See Also


SaveMessage(IConnection, string, Stream)

Downloads the message with the specified sequence number and writes its data into a supplied stream

public void SaveMessage(IConnection connection, string uniqueId, Stream resultStream)
ParameterTypeDescription
connectionIConnectionConnection to a server
uniqueIdStringThe unique Id of the message
resultStreamStreamStream that will receive the message

See Also


SaveMessage(IConnection, string, string)

Downloads the message with the specified sequence number and writes its data into a local file

public void SaveMessage(IConnection connection, string uniqueId, string fileName)
ParameterTypeDescription
connectionIConnectionConnection to a server
uniqueIdStringThe unique Id of the message
fileNameStringThe path of the local file. This cannot be a directory

See Also


SaveMessage(IConnection, int, string)

Downloads the message with the specified sequence number and writes its data into a local file

public void SaveMessage(IConnection connection, int sequenceNumber, string fileName)
ParameterTypeDescription
connectionIConnectionConnection to a server
sequenceNumberInt32The sequence number of the message
fileNameStringThe path of the local file. This cannot be a directory

See Also


SaveMessage(int, Stream)

Downloads the message with the specified sequence number and writes its data into a supplied stream

public void SaveMessage(int sequenceNumber, Stream resultStream)
ParameterTypeDescription
sequenceNumberInt32The sequence number of the message
resultStreamStreamStream that will receive the message

See Also


SaveMessage(string, Stream)

Downloads the message with the specified sequence number and writes its data into a supplied stream

public void SaveMessage(string uniqueId, Stream resultStream)
ParameterTypeDescription
uniqueIdStringThe unique Id of the message
resultStreamStreamStream that will receive the message

See Also


SaveMessage(string, string)

Downloads the message with the specified sequence number and writes its data into a local file

public void SaveMessage(string uniqueId, string fileName)
ParameterTypeDescription
uniqueIdStringThe unique Id of the message
fileNameStringThe path of the local file. This cannot be a directory

See Also


SaveMessage(int, string)

Downloads the message with the specified sequence number and writes its data into a local file

public void SaveMessage(int sequenceNumber, string fileName)
ParameterTypeDescription
sequenceNumberInt32The sequence number of the message
fileNameStringThe path of the local file. This cannot be a directory

See Also