diff --git a/imap_tools/message.py b/imap_tools/message.py index 71c40dd..5387a69 100644 --- a/imap_tools/message.py +++ b/imap_tools/message.py @@ -39,6 +39,7 @@ def _get_message_data_parts(fetch_data) -> (bytes, bytes, [bytes]): # data, uid if type(fetch_item) is tuple: raw_uid_data = fetch_item[0] + raw_flag_data.append(fetch_item[0]) # may contains flags (google, dovecot) raw_message_data = fetch_item[1] return raw_message_data, raw_uid_data, raw_flag_data diff --git a/release_notes.rst b/release_notes.rst index d2c7511..b9b9bf2 100644 --- a/release_notes.rst +++ b/release_notes.rst @@ -1,3 +1,7 @@ +0.14.0 +====== +* Improved parse logic for message.MailMessage.flags + 0.13.1 ====== * Improve utils.parse_email_addresses - full values for bad emails diff --git a/setup.py b/setup.py index f103e1e..5f4709a 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name='imap_tools', - version='0.13.1', + version='0.14.0', packages=setuptools.find_packages(), url='https://github.com/ikvk/imap_tools', license='Apache-2.0', diff --git a/tests/utils.py b/tests/utils.py index e994196..b33498c 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -3,8 +3,7 @@ import configparser from imap_tools import MailBox -# YANDEX, MAIL_RU, GOOGLE, ZIMBRA, OUTLOOK -TEST_MAILBOX_NAME_SET = {'YANDEX', 'ZIMBRA', 'MAIL_RU', 'OUTLOOK'} +TEST_MAILBOX_NAME_SET = {'YANDEX', 'ZIMBRA', 'MAIL_RU', 'OUTLOOK', 'GOOGLE'} def get_test_mailbox_config(mailbox_name: str) -> dict: