From 708f0bea449ff55db55eb61237d728b4aa80e729 Mon Sep 17 00:00:00 2001 From: Bohdan Marukhnenko Date: Mon, 7 Aug 2023 18:51:01 +0300 Subject: [PATCH 1/3] Renamed Message.test_body to Message.text_body --- tempmail/providers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tempmail/providers.py b/tempmail/providers.py index df269cc..e969600 100644 --- a/tempmail/providers.py +++ b/tempmail/providers.py @@ -106,7 +106,7 @@ class Message: subject: str date_str: str body: str - test_body: str + text_body: str html_body: str _mail: 'OneSecMail' _attachments: list[dict[str, any]] @@ -129,7 +129,7 @@ def from_dict(cls, mail: 'OneSecMail', msg: dict[str, any]) -> 'OneSecMail.Messa subject=msg['subject'], date_str=msg['date'], body=msg['textBody'], - test_body=msg['textBody'], + text_body=msg['textBody'], html_body=msg['htmlBody'], ) From fab8057f51ddebc2ac8117a628cc8542e2b99960 Mon Sep 17 00:00:00 2001 From: Bohdan Marukhnenko Date: Mon, 7 Aug 2023 18:51:30 +0300 Subject: [PATCH 2/3] providers.py: Fixed issue with Message.body field --- tempmail/providers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tempmail/providers.py b/tempmail/providers.py index e969600..3889420 100644 --- a/tempmail/providers.py +++ b/tempmail/providers.py @@ -128,7 +128,7 @@ def from_dict(cls, mail: 'OneSecMail', msg: dict[str, any]) -> 'OneSecMail.Messa from_addr=msg['from'], subject=msg['subject'], date_str=msg['date'], - body=msg['textBody'], + body=msg['body'], text_body=msg['textBody'], html_body=msg['htmlBody'], ) From 5f2bd97eabc5bf4f76e9dcff1d7a11b5f286d67a Mon Sep 17 00:00:00 2001 From: Bohdan Marukhnenko Date: Mon, 7 Aug 2023 18:51:38 +0300 Subject: [PATCH 3/3] Bump version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index db438bc..444340f 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ def read(path: str) -> str: setup( name='tempmail-python', - version='2.1.0', + version='2.2.0', description='Python library for generating and managing temporary email addresses.', long_description=read('README.md'), long_description_content_type='text/markdown',