# Path: imap_tools/utils.py
# class EmailAddress:
#     """Parsed email address info"""
#     __slots__ = 'name', 'email', 'full'
# 
#     def __init__(self, name: str, email: str, full: str):
#         self.name = name
#         self.email = email
#         self.full = full
# 
#     def __repr__(self):
#         return "{}(name={}, email={}, full={})".format(
#             self.__class__.__name__, repr(self.name), repr(self.email), repr(self.full))
# 
#     def __eq__(self, other):
#         return all(getattr(self, i) == getattr(other, i) for i in self.__slots__)


import datetime
from imap_tools import EmailAddress

DATA = dict(
    subject='test',
    from_='xxxxxxx@docomo.ne.jp',
    to=('unknown@example.com',),
    cc=(),
    bcc=(),
    reply_to=(),
    date=datetime.datetime(2014, 5, 28, 17, 18, 19, tzinfo=datetime.timezone(datetime.timedelta(0, 32400))),
    date_str='Wed, 28 May 2014 17:18:19 +0900 (JST)',
    text='あいうえお\r\n\r\nこのメールはテスト用のメールです。\r\n\r\n今後ともよろしくお願い申し上げます！\r\n',
    html='',
    headers={'delivered-to': ('unknown@example.com',), 'date': ('Wed, 28 May 2014 17:18:19 +0900 (JST)',), 'from': ('xxxxxxx@docomo.ne.jp',), 'to': ('unknown@example.com',), 'subject': ('test',), 'message-id': ('<xxxxx@docomo.ne.jp>',), 'mime-version': ('1.0',), 'content-type': ('text/plain; charset="Shift_JIS"',), 'content-transfer-encoding': ('8bit',)},
    attachments=[],
    from_values=EmailAddress('', 'xxxxxxx@docomo.ne.jp', 'xxxxxxx@docomo.ne.jp'),

# Path: imap_tools/utils.py
# class EmailAddress:
#     """Parsed email address info"""
#     __slots__ = 'name', 'email', 'full'
# 
#     def __init__(self, name: str, email: str, full: str):
#         self.name = name
#         self.email = email
#         self.full = full
# 
#     def __repr__(self):
#         return "{}(name={}, email={}, full={})".format(
#             self.__class__.__name__, repr(self.name), repr(self.email), repr(self.full))
# 
#     def __eq__(self, other):
#         return all(getattr(self, i) == getattr(other, i) for i in self.__slots__)


# Path: tests/messages_data/multi_charset/japanese_shift_jis.py
import datetime
from imap_tools import EmailAddress


DATA = dict(
    subject='test',
    from_='xxxxxxx@docomo.ne.jp',
    to=('unknown@example.com',),
    cc=(),
    bcc=(),
    reply_to=(),
    date=datetime.datetime(2014, 5, 28, 17, 18, 19, tzinfo=datetime.timezone(datetime.timedelta(0, 32400))),
    date_str='Wed, 28 May 2014 17:18:19 +0900 (JST)',
    text='あいうえお\r\n\r\nこのメールはテスト用のメールです。\r\n\r\n今後ともよろしくお願い申し上げます！\r\n',
    html='',
    headers={'delivered-to': ('unknown@example.com',), 'date': ('Wed, 28 May 2014 17:18:19 +0900 (JST)',), 'from': ('xxxxxxx@docomo.ne.jp',), 'to': ('unknown@example.com',), 'subject': ('test',), 'message-id': ('<xxxxx@docomo.ne.jp>',), 'mime-version': ('1.0',), 'content-type': ('text/plain; charset="Shift_JIS"',), 'content-transfer-encoding': ('8bit',)},
    attachments=[],
    from_values=EmailAddress('', 'xxxxxxx@docomo.ne.jp', 'xxxxxxx@docomo.ne.jp'),

    to_values=(EmailAddress('', 'unknown@example.com', 'unknown@example.com'),),