Skip to content

Commit 3a946a6

Browse files
Merge branch 'develop' into master
2 parents f9e9a61 + e172331 commit 3a946a6

File tree

4 files changed

+38
-30
lines changed

4 files changed

+38
-30
lines changed

README.md

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -22,35 +22,12 @@ Aspose.Email Cloud is a REST API for creating email applications that work with
2222
- Email configuration discovery.
2323
- Disposable email address detection.
2424

25+
## Enhancements in Version 21.3
2526

26-
## Enhancements in Version 20.12
27+
- IMAP native threads support added to the built-in Email client.
28+
- New field ClientThreadMoveRequest.SourceFolder added to specify a folder to move a thread from.
2729

28-
Aspose.Email Cloud 20.12.0 comes with SDK breaking changes:
29-
- AppKey renamed to ClientSecret.
30-
- AppSID renamed to ClientId.
31-
32-
Some [SDK reference documentation](https://docs.aspose.cloud/email/reference-api/) improvements were made.
33-
34-
## Enhancements in Version 20.10
35-
- All SDK functions are divided into groups (Email, Calendar, Contact, Client, Ai, Mapi, etc.).
36-
- Unified file API provided for supported file types (Save, Get, Convert, AsFile, FromFile, AsMapi/AsDto).
37-
- HierarchicalObject based API is removed.
38-
- All models are stored in one folder/namespace.
39-
- The request models are simplified
40-
41-
## Enhancements in Version 20.9
42-
- Lets developers manipulate different emails' formats such as Outlook MSG, EML, VCard, and iCalendar files.
43-
- Supports AI functions:
44-
- Business card recognition.
45-
- The Name API for parsing and handling personal names.
46-
- Has a built-in email client. This client provides:
47-
- Unified REST API for different email protocols: IMAP, POP3, SMTP, EWS, WebDav.
48-
- Virtual multi-account.
49-
- Message threads (POP3 accounts are also supported).
50-
- Email configuration discovery.
51-
- Disposable email address detection.
52-
53-
See [Release notes](https://docs.aspose.cloud/email/release-notes/).
30+
See [Release notes](https://docs.aspose.cloud/email/aspose-email-cloud-21-3-release-notes/).
5431

5532
## How to use the SDK?
5633
The complete source code is available in the [GIT repository](https://github.com/aspose-email-cloud/aspose-email-cloud-python/tree/master/sdk/AsposeEmailCloudSdk).

sdk/AsposeEmailCloudSdk/models/client_thread_move_request.py

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,18 @@ class ClientThreadMoveRequest(ClientThreadBaseRequest):
4848
swagger_types = {
4949
'account_location': 'StorageFileLocation',
5050
'thread_id': 'str',
51-
'destination_folder': 'str'
51+
'destination_folder': 'str',
52+
'source_folder': 'str'
5253
}
5354

5455
attribute_map = {
5556
'account_location': 'accountLocation',
5657
'thread_id': 'threadId',
57-
'destination_folder': 'destinationFolder'
58+
'destination_folder': 'destinationFolder',
59+
'source_folder': 'sourceFolder'
5860
}
5961

60-
def __init__(self, account_location: StorageFileLocation = None, thread_id: str = None, destination_folder: str = None):
62+
def __init__(self, account_location: StorageFileLocation = None, thread_id: str = None, destination_folder: str = None, source_folder: str = None):
6163
"""
6264
Email client move thread request.
6365
:param account_location: Email client account configuration location on storage.
@@ -66,17 +68,22 @@ def __init__(self, account_location: StorageFileLocation = None, thread_id: str
6668
:type thread_id: str
6769
:param destination_folder: Email account folder to move thread to.
6870
:type destination_folder: str
71+
:param source_folder: Email account folder to move thread from.
72+
:type source_folder: str
6973
"""
7074
super(ClientThreadMoveRequest, self).__init__()
7175

7276
self._destination_folder = None
77+
self._source_folder = None
7378

7479
if account_location is not None:
7580
self.account_location = account_location
7681
if thread_id is not None:
7782
self.thread_id = thread_id
7883
if destination_folder is not None:
7984
self.destination_folder = destination_folder
85+
if source_folder is not None:
86+
self.source_folder = source_folder
8087

8188

8289
@property
@@ -103,6 +110,26 @@ def destination_folder(self, destination_folder: str):
103110
raise ValueError("Invalid value for `destination_folder`, length must be greater than or equal to `1`")
104111
self._destination_folder = destination_folder
105112

113+
@property
114+
def source_folder(self) -> str:
115+
"""
116+
Email account folder to move thread from.
117+
118+
:return: The source_folder of this ClientThreadMoveRequest.
119+
:rtype: str
120+
"""
121+
return self._source_folder
122+
123+
@source_folder.setter
124+
def source_folder(self, source_folder: str):
125+
"""
126+
Email account folder to move thread from.
127+
128+
:param source_folder: The source_folder of this ClientThreadMoveRequest.
129+
:type: str
130+
"""
131+
self._source_folder = source_folder
132+
106133
def to_dict(self):
107134
"""Returns the model properties as a dict"""
108135
result = {}

sdk/docs/ClientThreadApi.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ See parameter model documentation at [ClientThreadMoveRequest](ClientThreadMoveR
271271
```python
272272
request = models.ClientThreadMoveRequest(
273273
destination_folder='INBOX/SubFolder',
274+
source_folder='INBOX',
274275
thread_id='5',
275276
account_location=models.StorageFileLocation(
276277
file_name='email.account',
@@ -295,6 +296,7 @@ api = EmailCloud(client_secret, client_id)
295296
// Prepare parameters:
296297
request = models.ClientThreadMoveRequest(
297298
destination_folder='INBOX/SubFolder',
299+
source_folder='INBOX',
298300
thread_id='5',
299301
account_location=models.StorageFileLocation(
300302
file_name='email.account',

sdk/docs/ClientThreadMoveRequest.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Email client move thread request.
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**destination_folder** |**str** |Email account folder to move thread to. |
9+
**source_folder** |**str** |Email account folder to move thread from. |[optional]
910

1011
Parent class: [ClientThreadBaseRequest](ClientThreadBaseRequest.md)
1112

@@ -14,6 +15,7 @@ Parent class: [ClientThreadBaseRequest](ClientThreadBaseRequest.md)
1415
```python
1516
client_thread_move_request = models.ClientThreadMoveRequest(
1617
destination_folder='INBOX/SubFolder',
18+
source_folder='INBOX',
1719
thread_id='5',
1820
account_location=models.StorageFileLocation(
1921
file_name='email.account',

0 commit comments

Comments
 (0)