# 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='Re: TESTテストテスト',
    from_='atsushi@example.com',
    to=('rudeboyjet@gmail.com',),
    cc=(),
    bcc=(),
    reply_to=('rudeboyjet@gmail.com',),
    date=datetime.datetime(2011, 8, 19, 10, 47, 17, tzinfo=datetime.timezone(datetime.timedelta(0, 32400))),
    date_str='Fri, 19 Aug 2011 10:47:17 +0900',
    text='Hello\r\n',
    html='',
    headers={'date': ('Fri, 19 Aug 2011 10:47:17 +0900',), 'from': ('Atsushi Yoshida <atsushi@example.com>',), 'reply-to': ('rudeboyjet@gmail.com',), 'subject': ('Re: TEST\r\n \r\n\t=?ISO-2022-JP?B?GyRCJUYlOSVIGyhC?=\r\n  =?ISO-2022-JP?B?GyRCJUYlOSVIGyhC?=',), 'to': ('rudeboyjet@gmail.com',), 'message-id': ('<0CC5E11ED2C1D@example.com>',), 'in-reply-to': ('<rid_5582199198@msgid.example.com>',), 'mime-version': ('1.0',), 'content-type': ('text/plain; charset=iso-2022-jp',), 'content-transfer-encoding': ('7bit',)},
    attachments=[],
    from_values=EmailAddress('Atsushi Yoshida', 'atsushi@example.com', 'Atsushi Yoshida <atsushi@example.com>'),
    to_values=(EmailAddress('', 'rudeboyjet@gmail.com', 'rudeboyjet@gmail.com'),),
    cc_values=(),
    bcc_values=(),

# 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/rfc2822/example14.py
import datetime
from imap_tools import EmailAddress


DATA = dict(
    subject='Re: TESTテストテスト',
    from_='atsushi@example.com',
    to=('rudeboyjet@gmail.com',),
    cc=(),
    bcc=(),
    reply_to=('rudeboyjet@gmail.com',),
    date=datetime.datetime(2011, 8, 19, 10, 47, 17, tzinfo=datetime.timezone(datetime.timedelta(0, 32400))),
    date_str='Fri, 19 Aug 2011 10:47:17 +0900',
    text='Hello\r\n',
    html='',
    headers={'date': ('Fri, 19 Aug 2011 10:47:17 +0900',), 'from': ('Atsushi Yoshida <atsushi@example.com>',), 'reply-to': ('rudeboyjet@gmail.com',), 'subject': ('Re: TEST\r\n \r\n\t=?ISO-2022-JP?B?GyRCJUYlOSVIGyhC?=\r\n  =?ISO-2022-JP?B?GyRCJUYlOSVIGyhC?=',), 'to': ('rudeboyjet@gmail.com',), 'message-id': ('<0CC5E11ED2C1D@example.com>',), 'in-reply-to': ('<rid_5582199198@msgid.example.com>',), 'mime-version': ('1.0',), 'content-type': ('text/plain; charset=iso-2022-jp',), 'content-transfer-encoding': ('7bit',)},
    attachments=[],
    from_values=EmailAddress('Atsushi Yoshida', 'atsushi@example.com', 'Atsushi Yoshida <atsushi@example.com>'),
    to_values=(EmailAddress('', 'rudeboyjet@gmail.com', 'rudeboyjet@gmail.com'),),
    cc_values=(),
    bcc_values=(),

    reply_to_values=(EmailAddress('', 'rudeboyjet@gmail.com', 'rudeboyjet@gmail.com'),),