Skip to content

Commit

Permalink
Improved parse logic for message.MailMessage.flags
Browse files Browse the repository at this point in the history
  • Loading branch information
ikvk committed Apr 22, 2020
1 parent cc84650 commit c4cd401
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions imap_tools/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions release_notes.rst
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
3 changes: 1 addition & 2 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c4cd401

Please sign in to comment.