SaveMessage

ImapClient.SaveMessage method (1 of 8)

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)
Parameter Type Description
connection IConnection Connection to a server
sequenceNumber Int32 The sequence number of the message
resultStream Stream Stream that will receive the message

See Also


ImapClient.SaveMessage method (2 of 8)

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)
Parameter Type Description
connection IConnection Connection to a server
uniqueId String The unique Id of the message
resultStream Stream Stream that will receive the message

See Also


ImapClient.SaveMessage method (3 of 8)

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)
Parameter Type Description
connection IConnection Connection to a server
uniqueId String The unique Id of the message
fileName String The path of the local file. This cannot be a directory

See Also


ImapClient.SaveMessage method (4 of 8)

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)
Parameter Type Description
connection IConnection Connection to a server
sequenceNumber Int32 The sequence number of the message
fileName String The path of the local file. This cannot be a directory

See Also


ImapClient.SaveMessage method (5 of 8)

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

public void SaveMessage(int sequenceNumber, Stream resultStream)
Parameter Type Description
sequenceNumber Int32 The sequence number of the message
resultStream Stream Stream that will receive the message

See Also


ImapClient.SaveMessage method (6 of 8)

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

public void SaveMessage(string uniqueId, Stream resultStream)
Parameter Type Description
uniqueId String The unique Id of the message
resultStream Stream Stream that will receive the message

See Also


ImapClient.SaveMessage method (7 of 8)

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

public void SaveMessage(string uniqueId, string fileName)
Parameter Type Description
uniqueId String The unique Id of the message
fileName String The path of the local file. This cannot be a directory

See Also


ImapClient.SaveMessage method (8 of 8)

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

public void SaveMessage(int sequenceNumber, string fileName)
Parameter Type Description
sequenceNumber Int32 The sequence number of the message
fileName String The path of the local file. This cannot be a directory

See Also