Thread

Email client thread operations.

An email thread is a conversation that starts from the original email and includes all of the replies to it.

Email client provides functions to:

  • Get a list of all email threads in the given folder.
  • Fetch all messages from the given thread.
  • Delete an entire thread or move it to another folder.
  • Mark all messages in the given thread as read or unread.

Email threads are supported even if the email server does not support such function. Just add a cache file location to the account configuration if you need to support emulated email threads.

Delete

Delete thread by id. All messages from thread will also be deleted. Requires:

request

Delete email thread request. Type: ClientThreadDeleteRequest.

GetList

Get message threads from folder. All messages are partly fetched (without email body and some other fields). Returns EmailThreadList model. Requires:

request

GetList method request. Type: ClientThreadGetListRequest.

GetMessages

Get messages from thread by id. All messages are fully fetched. For accounts with CacheFile only cached messages will be returned. Returns EmailList model. Requires:

request

GetMessages method request. Type: ClientThreadGetMessagesRequest.

Move

Move thread to another folder. Requires:

request

Move thread request. Type: ClientThreadMoveRequest.

SetIsRead

Mark all messages in thread as read or unread. Requires:

request

Email account specifier and IsRead flag. Type: ClientThreadSetIsReadRequest.

More APIs