# 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='Säying Hello',
    from_='jdöe@mächine.example',
    to=('märy@exämple.net',),
    cc=(),
    bcc=(),
    reply_to=(),
    date=datetime.datetime(1900, 1, 1, 0, 0),
    date_str='',
    text='body\r\n',
    html='',
    headers={'from': ('"J\udcc3\udcb6hn Doe" <jd\udcc3\udcb6e@m\udcc3\udca4chine.example>',), 'to': ('"M\udcc3\udca4ry Smith" <m\udcc3\udca4ry@ex\udcc3\udca4mple.net>',), 'subject': ('S\udcc3\udca4ying Hello',)},
    attachments=[],
    from_values=EmailAddress('Jöhn Doe', 'jdöe@mächine.example', 'Jöhn Doe <jdöe@mächine.example>'),

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


DATA = dict(
    subject='Säying Hello',
    from_='jdöe@mächine.example',
    to=('märy@exämple.net',),
    cc=(),
    bcc=(),
    reply_to=(),
    date=datetime.datetime(1900, 1, 1, 0, 0),
    date_str='',
    text='body\r\n',
    html='',
    headers={'from': ('"J\udcc3\udcb6hn Doe" <jd\udcc3\udcb6e@m\udcc3\udca4chine.example>',), 'to': ('"M\udcc3\udca4ry Smith" <m\udcc3\udca4ry@ex\udcc3\udca4mple.net>',), 'subject': ('S\udcc3\udca4ying Hello',)},
    attachments=[],
    from_values=EmailAddress('Jöhn Doe', 'jdöe@mächine.example', 'Jöhn Doe <jdöe@mächine.example>'),

    to_values=(EmailAddress('Märy Smith', 'märy@exämple.net', 'Märy Smith <märy@exämple.net>'),),