import datetime

"""
attachment_2_base64.eml
    Непонятно почему get_content_type не может получить content-type, в файле он есть
    Из за этого 2е вложение воспринимается как msg.text, хотя в файле его нет
    Возможно это из за наличия дефекта MissingHeaderBodySeparatorDefect
    ...\python\Python36-32\Lib\email\message.py 
    def get_content_type(self): 
        ...
        value = self.get('content-type', missing) -> None -> return self.get_default_type() -> text/plain
"""

MESSAGE_ATTRIBUTES = {

    # ===
    'simple': dict(
        subject='Соберите всю почту в этот ящик',
        from_='hello@yandex.ru',
        to=(),
        cc=(),
        bcc=(),
        reply_to=('foma@company.ru', 'petr@company.ru'),
        date=datetime.datetime(1900, 1, 1, 0, 0),
        date_str='',
        text='',
        html="""<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"></head><body bgcolor="#ffffff" text="#000000"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Соберите письма из других почтовых ящиков в Яндекс.Почте</title><font color="#000000" face="Arial"> Здравствуйте!<br><br> Если у Вас уже есть почтовые ящики, куда приходят письма, Вам будет удобнее хранить и читать все письма в одном ящике.<br><br><table cellpadding="0" cellspacing="0"><tbody><tr><td valign="top">
<a href="https://mail.yandex.ru/neo2/#setup/collectors"><img src="cid:collector.jpg@parts.yandex.ru" alt="Сборщик писем" width="135" border="0" height="100"></a>
</td><td valign="top"> <font color="#000000" face="Arial"> В Яндекс.Почту можно скопировать всю переписку и адреса собеседников из ваших старых ящиков. С ящиками ничего не случится – они продолжат работать и принимать письма, а на новый адрес в Яндекс.Почте будут приходить копии этих писем.<br><br>Чтобы собрать всю почту и адреса в один ящик —
<a href="https://mail.yandex.ru/neo2/#setup/collectors">
настройте сбор почты</a>. Для этого введите адрес ящика и пароль от него.<br><br>
<a href="https://mail.yandex.ru/neo2/#setup/collectors">
<font size="5">Настроить сбор почты</font></a></font></td></tr></tbody></table></font>
</body></html>""",
        headers={'MIME-Version': ('1.0',), 'From': ('=?utf-8?b?0K/QvdC00LXQutGB?= <hello@yandex.ru>',),
                 'Content-Type': ('multipart/related; boundary="===============1696383123=="',), 'Reply-To': (
                '=?UTF-8?B?0L/RgNC40LLQtdGC?= <foma@company.ru>,\r\n =?UTF-8?B?0L/QvtC60LA=?= <petr@company.ru>',),
                 'Message-Id': ('<20110815165837.A26162B2802A@yaback1.mail.yandex.net>',), 'Subject': (
                '=?utf-8?b?0KHQvtCx0LXRgNC40YLQtSDQstGB0Y4g0L/QvtGH0YLRgyDQsiDRjdGC0L4=?=\r\n =?utf-8?b?0YIg0Y/RidC40Lo=?=',)},
        attachments=[
            dict(
                filename='collector.jpg',
                content_id='collector.jpg@parts.yandex.ru',
                content_disposition='attachment',
                content_type='image/jpeg',
                payload=b'\xff\xd8\xff\xe0\x00\x10JFIF\x00\x01\x02\x00\x00d\x00d\x00\x00\xff\xec\x00\x11Ducky\x00\x01\x00\x04\x00\x00\x00F\x00\x00\xff\xee\x00\x0eAdobe\x00d\xc0\x00\x00\x00\x01\xff\xdb\x00\x84\x00\x04\x03\x03\x03\x03\x03\x04\x03\x03\x04\x06\x04\x03\x04\x06\x07\x05\x04\x04\x05\x07\x08\x06\x06\x07\x06\x06\x08\n\x08\t\t\t\t\x08\n\n\x0c\x0c\x0c\x0c\x0c\n\x0c\x0c\r\r\x0c\x0c\x11\x11\x11\x11\x11\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x01\x04\x05\x05\x08\x07\x08\x0f\n\n\x0f\x14\x0e\x0e\x0e\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\x14\xff\xc0\x00\x11\x08\x00d\x00\x87\x03\x01\x11\x00\x02\x11\x01\x03\x11\x01\xff\xc4\x00\xba\x00\x00\x01\x04\x03\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x04\x05\x06\x01\x02\x08\x07\t\x01\x00\x01\x05\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x02\x03\x04\x05\x06\x07\x10\x00\x01\x03\x03\x02\x02\x05\t\x01\n\x0b\t\x00\x00\x00\x00\x01\x02\x03\x04\x00\x11\x05\x12\x06!1AQ"\x13\x07aq\x81\x91\xa12\x14\x15\x08\xb1\xd1Bbr\x92\xa2#3s\xd3\xc1\xe1\x82\xb2\xc2CSc\xb3\xc3\x16R\xd2\x83\x93$D%E\x18\x11\x00\x02\x01\x02\x01\x08\x06\x06\n\x02\x03\x01\x00\x00\x00\x00\x00\x01\x02\x11\x03\x04!1AQ\x91\x12R\x05aq\x81\xa1\xb12\xf0\xc1\xd1"\x13\x15\xe1Bbr\x82\xb2\xc23\x06\x16#$\xa2s4\x14\xff\xda\x00\x0c\x03\x01\x00\x02\x11\x03\x11\x00?\x00\xef\xea\x00(\x00\xa0\r\x1cy\xa6\x8biuiB\x9dV\x86\xc2\x88\x1a\x95bl:\xcd\x81\xa5\xa0\xa97\x98\xde\x90@\xa0\r\\Z\x1aB\x9cp\x84\xb6\x80T\xa5\x1e@\x0e$\xd2\xa4\xdb\xa2\x11\xba*\xb3)RV\x90\xa4\x9b\xa5B\xe0\x8eD\x1aF\xa8*fh\x00\xa0\x04b\xca\x8f5\x84I\x8a\xe0u\x85\xdfC\x89\xe4lH>\xa2)\x13O0\xe9A\xc5\xd1\xaa1jQ\xa1@\x05\x00\x14\x00P\x01@\x05\x00\x14\x00P\x04V\xe2%\xbcp\x94\x13\x7f\x84~<\x85\x1e\xa6\xday\x05\xc5z\x11\xa8\xd3\xe1\x9c\x9e\xcf\x9a\x9a\xd3]\xc4\xad0\x80(\x01\xbc\xe4\x07aIm^\xea\xdaZM\xb9\xd8\xa4\x8a\x92\xdb\xa4\x93\xe9\x19qV-t\x1ac\x15\xab\x1b\rW\xb9,6o\xe7H\xa7^T\x9c\xba\xd8\xdb.\xb0\x8fR\x1d\xd4$\xa6\t\xb0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\xa1S\x13\xcd\xa5z\xdb\x83\x8d*z\xddn\x98a@\x05\x00\x14\x00P\x06\x0fE\x00f\x80\x0e4\x00P\x01@\x05\x00\x14\x00P\x01@\x05\x00\x14\x00P\x01@\x05\x00\x14\x01\xff\xd9'
            ),
        ],
        from_values={'email': 'hello@yandex.ru', 'name': 'Яндекс', 'full': 'Яндекс <hello@yandex.ru>'},
        to_values=(),
        cc_values=(),
        bcc_values=(),
        reply_to_values=({'email': 'foma@company.ru', 'full': 'привет <foma@company.ru>', 'name': 'привет'},
                         {'email': 'petr@company.ru', 'full': 'пока <petr@company.ru>', 'name': 'пока'}),
    ),

    # ===
    'attachment_8bit': dict(
        subject='S19 IZM A7-342',
        from_='k1@yandex.ru',
        to=('rasp@wat.aero',),
        cc=('aa@com.ru', 'mm@com.ru'),
        bcc=('hello@yandex-team.ru',),
        reply_to=(),
        date=datetime.datetime(2019, 2, 7, 13, 18, 20,
                               tzinfo=datetime.timezone(datetime.timedelta(hours=5, minutes=0))),
        date_str='Thu, 7 Feb 2019 13:18:20 +0500',
        text="""SCR

/
S19
07FEB
wat

-- 
отдел расписания
тел. (343) 072-00-00 (вн.18-59)
e-mail: e.sp@com.ru

""".replace('\n', '\r\n'),
        html="""<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=windows-1251">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>SCR<br>
    </p>
    <div class="moz-forward-container">/<br>
      S19<br>
      07FEB<br>
      wat<br></div>
    <pre class="moz-signature" cols="72">-- 
отдел расписания
тел. (343) 072-00-00 (вн.18-59)
e-mail: <a class="moz-txt-link-abbreviated" href="mailto:e.sp@com.ru">e.sp@com.ru</a></pre>
  </body>
</html>
""".replace('\n', '\r\n'),
        headers={'To': ('=?UTF-8?B?0KLQrtCc0JXQndCs?= <rasp@wat.aero>',), 'MIME-Version': ('1.0',),
                 'X-Forwarded-Message-Id': ('<1333139463.20190207083243@com.ru>',),
                 'Date': ('Thu, 7 Feb 2019 13:18:20 +0500',), 'References': ('<1333139463.20190207083243@com.ru>',),
                 'Return-Path': ('e.sp@com.ru',), 'Received': (
                'from m101.com.ru (LHLO m101.com.ru) (92.233.222.111) by m101.com.ru\r\n with LMTP; Thu, 7 Feb 2019 13:18:22 +0500 (YEKT)',
                'from localhost (localhost [127.0.0.1])\r\n\tby m101.com.ru (Postfix) with ESMTP id 9A9181170B7;\r\n\tThu,  7 Feb 2019 13:18:22 +0500 (YEKT)',
                'from m101.com.ru ([127.0.0.1])\r\n\tby localhost (m101.com.ru [127.0.0.1]) (amavisd-new, port 10026)\r\n\twith ESMTP id Q3OLc4gNDjjO; Thu,  7 Feb 2019 13:18:22 +0500 (YEKT)',
                'from [192.168.104.100] (kom-420-1.hades.company [192.168.104.100])\r\n\tby m101.com.ru (Postfix) with ESMTPSA id DC7BB1170A1;\r\n\tThu,  7 Feb 2019 13:18:21 +0500 (YEKT)'),
                 'Cc': ('aa@com.ru, mm@com.ru',), 'Bcc': (
                '=?utf-8?b?0JrQvtC80LDQvdC00LAg0K/QvdC00LXQutGBLtCf0L7Rh9GC0Ys=?=\r\n\t<hello@yandex-team.ru>',),
                 'From': ('=?utf-8?B?0JrQsNGD0LrQuNC9INCS0LvQsNC00LjQvNC40YA=?= <k1@yandex.ru>',),
                 'Content-Type': ('multipart/mixed;\r\n boundary="------------FFFBFD561B1FF33B4E5E7050"',),
                 'Subject': ('S19 IZM A7-342',), 'X-Virus-Scanned': ('amavisd-new at m101.com.ru',),
                 'User-Agent': ('Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101\r\n Thunderbird/60.5.0',),
                 'Message-ID': ('<2ffd4cec-d312-60da-72f3-5b6e4406fddf@com.ru>',), 'Content-Language': ('ru',),
                 'In-Reply-To': ('<1333139463.20190207083243@com.ru>',)},
        attachments=[
            dict(
                filename='Message01.eml',
                content_id='',
                content_disposition='attachment',
                content_type='message/rfc822',
                payload=b'Return-Path: a.pl@com.ru\nReceived: from m101.com.ru (LHLO m101.com.ru) (92.233.222.111) by m101.com.ru\n with LMTP; Thu, 7 Feb 2019 08:29:46 +0500 (YEKT)\nReceived: from localhost (localhost [127.0.0.1])\n\tby m101.com.ru (Postfix) with ESMTP id 5C11A78A70;\n\tThu,  7 Feb 2019 08:29:46 +0500 (YEKT)\nX-Virus-Scanned: amavisd-new at m101.com.ru\nReceived: from m101.com.ru ([127.0.0.1])\n\tby localhost (m101.com.ru [127.0.0.1]) (amavisd-new, port 10026)\n\twith ESMTP id qPDszqYc1_Us; Thu,  7 Feb 2019 08:29:46 +0500 (YEKT)\nReceived: from [192.168.104.53] (kom-419-31.hades.company [192.168.104.53])\n\tby m101.com.ru (Postfix) with ESMTPSA id 29D6C78A67\n\tfor <a.nov@company.ru>; Thu,  7 Feb 2019 08:29:46 +0500 (YEKT)\nSubject: S19 IZM A7-342\nReferences: <4a598974-6731-c4f3-0efa-2f1e2b044f08@com.ru>\nTo: Alla Nov <a.nov@company.ru>\nFrom: =?utf-8?B?0JrQsNGD0LrQuNC9INCS0LvQsNC00LjQvNC40YA=?= <k1@yandex.ru>\nX-Forwarded-Message-Id: <4a598974-6731-c4f3-0efa-2f1e2b044f08@com.ru>\nMessage-ID: <09ccd226-f9e9-77e0-e456-3490e024d16e@com.ru>\nDate: Thu, 7 Feb 2019 08:29:45 +0500\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101\n Thunderbird/60.4.0\nMIME-Version: 1.0\nIn-Reply-To: <4a598974-6731-c4f3-0efa-2f1e2b044f08@com.ru>\nContent-Type: multipart/alternative;\n boundary="------------CC10C5F7DB2594C21A5E2BDB"\nContent-Language: ru\n\n--------------CC10C5F7DB2594C21A5E2BDB\nContent-Type: text/plain; charset=utf-8; format=flowed\nContent-Transfer-Encoding: 8bit\n\n\xd0\x94\xd0\xbe\xd0\xb1\xd1\x80\xd1\x8b\xd0\xb9\xc2\xa0\xd0\xb4\xd0\xb5\xd0\xbd\xd1\x8c,\xc2\xa0\xd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d0\xb5\xd1\x82\xd1\x81\xd1\x8f \xd0\xb1\xd0\xb5\xd0\xb7 \xd0\xb8\xd0\xb7\xd0\xbc\xd0\xb5\xd0\xbd\xd0\xb5\xd0\xbd\xd0\xb8\xd1\x8f\n\n----------------------------------------\n\n*\xd0\x94\xd0\x9c\xd0\x94-\xd0\x9e\xd0\x9c\xd0\xa1-\xd0\x94\xd0\x9c\xd0\x94 \xc2\xa0 \xd0\xa36-387/388*\xc2\xa0 \xd1\x82\xd0\xb8\xd0\xbf \xd0\x92\xd0\xa1 \xd0\x90321\n\n\xd0\x92\xd0\x92 \xd0\xb8\xd0\xb7 \xd0\x94\xd0\x9c\xd0\x94 \xd0\xb2 23:15. \xd0\x92\xd0\x92 \xd0\xb8\xd0\xb7 \xd0\x9e\xd0\x9c\xd0\xa1 06:30 LT\n\n----------------------------------------\n\n*\xd0\x94\xd0\x9c\xd0\x94-\xd0\xa7\xd0\x9b\xd0\x91-\xd0\x94\xd0\x9c\xd0\x94 \xc2\xa0 \xd0\xa36-610/609*\xc2\xa0 \xd1\x82\xd0\xb8\xd0\xbf \xd0\x92\xd0\xa1 \xd0\x90320\n\n\xd0\x92\xd0\x92 \xd0\xb8\xd0\xb7 \xd0\x94\xd0\x9c\xd0\x94 \xd0\xb2 23:30. \xd0\x92\xd0\x92 \xd0\xb8\xd0\xb7 \xd0\xa7\xd0\x9b\xd0\x91 06:40 LT\n\n\n\n--------------CC10C5F7DB2594C21A5E2BDB\nContent-Type: text/html; charset=utf-8\nContent-Transfer-Encoding: 8bit\n\n<html>\n  <head>\n\n    <meta http-equiv="content-type" content="text/html; charset=UTF-8">\n  </head>\n  <body smarttemplateinserted="true">\n    <div id="smartTemplate4-template">\xd0\x94\xd0\xbe\xd0\xb1\xd1\x80\xd1\x8b\xd0\xb9\xc2\xa0\xd0\xb4\xd0\xb5\xd0\xbd\xd1\x8c,\xc2\xa0\xd1\x83\xd0\xb2\xd0\xb0\xd0\xb6\xd0\xb0\xd0\xb5\xd0\xbc\xd1\x8b\xd0\xb5\xc2\xa0\xd0\xba\xd0\xbe\xd0\xbb\xd0\xbb\xd0\xb5\xd0\xb3\xd0\xb8!\n      <p>\xc2\xa0</p>\n    </div>\n    <br>\n    <div class="moz-forward-container"><br>\n      <br>\n      -------- \xd0\x9f\xd0\xb5\xd1\x80\xd0\xb5\xd0\xbd\xd0\xb0\xd0\xbf\xd1\x80\xd0\xb0\xd0\xb2\xd0\xbb\xd0\xb5\xd0\xbd\xd0\xbd\xd0\xbe\xd0\xb5 \xd1\x81\xd0\xbe\xd0\xbe\xd0\xb1\xd1\x89\xd0\xb5\xd0\xbd\xd0\xb8\xd0\xb5 --------\n      <table class="moz-email-headers-table" cellspacing="0"\n        cellpadding="0" border="0">\n        <tbody>\n          <tr>\n            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">\xd0\xa2\xd0\xb5\xd0\xbc\xd0\xb0: </th>\n            <td>\xd0\x92\xd0\xb2\xd0\xbe\xd0\xb4 \xd1\x80\xd0\xb5\xd0\xb9\xd1\x81\xd0\xbe\xd0\xb2 \xd0\xa2\xd0\xae\xd0\x9c, \xd0\xa7\xd0\x9b\xd0\x91, \xd0\x9e\xd0\x9c\xd0\xa1 \xd0\xbd\xd0\xb0 \xd0\x9b\xd0\xb5\xd1\x82\xd0\xbe 2019</td>\n          </tr>\n          <tr>\n            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">\xd0\x94\xd0\xb0\xd1\x82\xd0\xb0: </th>\n            <td>Fri, 7 Dec 2018 08:23:21 +0500</td>\n          </tr>\n          <tr>\n            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">\xd0\x9e\xd1\x82: </th>\n            <td>1 <a class="moz-txt-link-rfc2396E" href="mailto:a.pl@com.ru">&lt;a.pl@com.ru&gt;</a></td>\n          </tr>\n          <tr>\n            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">\xd0\x9a\xd0\xbe\xd0\xbc\xd1\x83: </th>\n            <td>2 <a class="moz-txt-link-rfc2396E" href="mailto:schedule@com.ru">&lt;schedule@com.ru&gt;</a></td>\n          </tr>\n        </tbody>\n      </table>\n      <br>\n      <br>\n      <meta http-equiv="content-type" content="text/html; charset=UTF-8">\n      <div id="smartTemplate4-template">\xd0\x94\xd0\xbe\xd0\xb1\xd1\x80\xd1\x8b\xd0\xb9\xc2\xa0\xd0\xb4\xd0\xb5\xd0\xbd\xd1\x8c,\xc2\xa0\xd1\x83\xd0\xb2\xd0\xb0\xd0\xb6\xd0\xb0\xd0\xb5\xd0\xbc\xd1\x8b\xd0\xb5\xc2\xa0\xd0\xba\xd0\xbe\xd0\xbb\xd0\xbb\xd0\xb5\xd0\xb3\xd0\xb8!\n        <p>\xd0\x9f\xd1\x80\xd0\xbe\xd1\x88\xd1\x83 \xd0\xb2\xd0\xb2\xd0\xb5\xd1\x81\xd1\x82\xd0\xb8 \xd1\x80\xd0\xb5\xd0\xb9\xd1\x81 \xd0\xbd\xd0\xb0 \xd0\xbf\xd0\xb5\xd1\x80\xd0\xb8\xd0\xbe\xd0\xb4 \xd0\xbb\xd0\xb5\xd1\x82\xd0\xbd\xd0\xb5\xd0\xb9 \xd0\xbd\xd0\xb0\xd0\xb2\xd0\xb8\xd0\xb3\xd0\xb0\xd1\x86\xd0\xb8\xd0\xb8 <br>\n        </p>\n        <p>\xc2\xa0 \xd1\x82\xd0\xb8\xd0\xbf \xd0\x92\xd0\xa1 \xd0\x90320<br>\n        </p>\n        <p>\xd0\x92\xd0\x92 \xd0\xb8\xd0\xb7 \xd0\x94\xd0\x9c\xd0\x94 23:00 LT. \xd0\x92\xd0\x92 \xd0\xb8\xd0\xb7 \xd0\xa2\xd0\xae\xd0\x9c 06:45 LT</p>\n        <p>\xd0\xb8\xd1\x81\xd0\xba\xd0\xbb\xd1\x8e\xd1\x87\xd0\xb5\xd0\xbd\xd0\xb8\xd0\xb5 \xd0\xbf\xd0\xb5\xd1\x80\xd0\xb8\xd0\xbe\xd0\xb4 \xd1\x81 25/05/19 \xd0\xbf\xd0\xbe 13/10/19 <br>\n        </p>\n        <p>\xd0\x92\xd0\x92 \xd0\xb8\xd0\xb7 \xd0\x94\xd0\x9c\xd0\x94 \xd0\xb2 00:50 LT<br>\n        </p>\n        <p>\xd0\x92\xd0\x92 \xd0\xb8\xd0\xb7 \xd0\xa2\xd0\xae\xd0\x9c \xd0\xbe\xd1\x81\xd1\x82\xd0\xb0\xd0\xb5\xd1\x82\xd1\x81\xd1\x8f \xd0\xb1\xd0\xb5\xd0\xb7 \xd0\xb8\xd0\xb7\xd0\xbc\xd0\xb5\xd0\xbd\xd0\xb5\xd0\xbd\xd0\xb8\xd1\x8f <br>\n        </p>\n        <p>----------------------------------------</p>\n        <p>\xc2\xa0 \xd1\x82\xd0\xb8\xd0\xbf \xd0\x92\xd0\xa1 \xd0\x90321</p>\n        <p>\xd0\x92\xd0\x92 \xd0\xb8\xd0\xb7 \xd0\x94\xd0\x9c\xd0\x94 \xd0\xb2 23:15. \xd0\x92\xd0\x92 \xd0\xb8\xd0\xb7 \xd0\x9e\xd0\x9c\xd0\xa1 06:30 LT <br>\n        </p>\n        <p>----------------------------------------</p>\n        <p>\xc2\xa0 \xd1\x82\xd0\xb8\xd0\xbf \xd0\x92\xd0\xa1 \xd0\x90320</p>\n        <p>\xd0\x92\xd0\x92 \xd0\xb8\xd0\xb7 \xd0\x94\xd0\x9c\xd0\x94 \xd0\xb2 23:30. \xd0\x92\xd0\x92 \xd0\xb8\xd0\xb7 \xd0\xa7\xd0\x9b\xd0\x91 06:40 LT </p>\n      </div>\n      <br>\n    </div>\n  </body>\n</html>\n\n--------------CC10C5F7DB2594C21A5E2BDB--\n\n'
            ),
        ],
        from_values={'email': 'k1@yandex.ru', 'name': 'Каукин Владимир', 'full': 'Каукин Владимир <k1@yandex.ru>'},
        to_values=({'email': 'rasp@wat.aero', 'name': 'ТЮМЕНЬ', 'full': 'ТЮМЕНЬ <rasp@wat.aero>'},),
        cc_values=({'email': 'aa@com.ru', 'name': '', 'full': 'aa@com.ru'},
                   {'email': 'mm@com.ru', 'name': '', 'full': 'mm@com.ru'}),
        bcc_values=({'email': 'hello@yandex-team.ru', 'name': 'Команда Яндекс.Почты',
                     'full': 'Команда Яндекс.Почты <hello@yandex-team.ru>'},),
        reply_to_values=(),
    ),

    # ===
    'attachment_7bit': dict(
        subject='статус',
        from_='i.kor@company.ru',
        to=('jessica.schmidt@uni.de', 'я你Rabea.Bartölke@uni.de'),
        cc=(),
        bcc=(),
        reply_to=(),
        date=datetime.datetime(2017, 10, 12, 9, 41, 56,
                               tzinfo=datetime.timezone(datetime.timedelta(hours=5, minutes=0))),
        date_str='Thu, 12 Oct 2017 09:41:56 +0500',
        text="""
""".replace('\n', '\r\n'),
        html="""

    <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
    <html xmlns='http://www.w3.org/1999/xhtml' lang='ru-ru'
          xml:lang='en-us'>
    <head>
        <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
        
    </head>

    <body id='body'>
    
    
        
        <a href="http://group.company.ru/ru/order/28922/process/">
            
            Новый заказ №28922
        </a><br>

        
        Создал:
        
            Клиент Ковчег
            (Гусев Дмитрий)
        <br><br>
        
        Сегменты: <br>
        <ul>
            
                <li>Москва - Тель-Авив, some-889, 15.03.2018, эконом: (15 взр.)</li>
            
                <li>Тель-Авив - Москва, some-890, 22.03.2018, эконом: (15 взр.)</li>
            
        </ul><br>
        
        
    

    </body>
    </html>

""".replace('\n', '\r\n'),
        headers={'Message-ID': ('<2405271c-86ac-0a65-e50c-d1ebccfcc644@company.ru>',),
                 'References': ('<20171011085432.15374.20485@web.hades.company>',), 'To': (
                'Jessica Schmidt <jessica.schmidt@uni.de>,\r\n\t=?iso-8859-1?Q?Rabea=2EBart=F6lke=40uni=2Ede?= <\udcd1\udc8f\udce4\udcbd\udca0Rabea.Bart\udcc3\udcb6lke@uni.de>',),
                 'Content-Type': ('multipart/mixed;\r\n boundary="------------BF90926EC9DF73443A6B8F28"',),
                 'X-Spam-Score': ('-2.898',), 'From': ('i.kor@company.ru',), 'Content-Language': ('ru',),
                 'Date': ('Thu, 12 Oct 2017 09:41:56 +0500',),
                 'In-Reply-To': ('<20171011085432.15374.20485@web.hades.company>',), 'X-Spam-Flag': ('NO',),
                 'Return-Path': ('i.kor@company.ru',),
                 'User-Agent': ('Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101\r\n Thunderbird/52.4.0',),
                 'X-Forwarded-Message-Id': ('<20171011085432.15374.20485@web.hades.company>',),
                 'X-Virus-Scanned': ('amavisd-new at m101.comp.ru',), 'Subject': ('=?UTF-8?B?0YHRgtCw0YLRg9GB?=    ',),
                 'MIME-Version': ('1.0',), 'Received': (
                'from m101.comp.ru (LHLO m101.comp.ru) (192.168.99.101) by m101.comp.ru\r\n with LMTP; Thu, 12 Oct 2017 09:41:57 +0500 (YEKT)',
                'from localhost (localhost [127.0.0.1])\r\n\tby m101.comp.ru (Postfix) with ESMTP id 555275B43;\r\n\tThu, 12 Oct 2017 09:41:57 +0500 (YEKT)',
                'from m101.comp.ru ([127.0.0.1])\r\n\tby localhost (m101.comp.ru [127.0.0.1]) (amavisd-new, port 10032)\r\n\twith ESMTP id rY6SAtl4piy1; Thu, 12 Oct 2017 09:41:56 +0500 (YEKT)',
                'from localhost (localhost [127.0.0.1])\r\n\tby m101.comp.ru (Postfix) with ESMTP id C8F0F5B4B;\r\n\tThu, 12 Oct 2017 09:41:56 +0500 (YEKT)',
                'from m101.comp.ru ([127.0.0.1])\r\n\tby localhost (m101.comp.ru [127.0.0.1]) (amavisd-new, port 10026)\r\n\twith ESMTP id kq2wE_i9_8EK; Thu, 12 Oct 2017 09:41:56 +0500 (YEKT)',
                'from [192.168.104.80] (notebook26.hades.company [192.168.104.80])\r\n\tby m101.comp.ru (Postfix) with ESMTPSA id 9563A5B44\r\n\tfor <user@company.ru>; Thu, 12 Oct 2017 09:41:56 +0500 (YEKT)'),
                 'X-Spam-Status': (
                     'No, score=-2.898 required=6.6 tests=[ALL_TRUSTED=-1,\r\n\tBAYES_00=-1.9, HTML_MESSAGE=0.001, URIBL_BLOCKED=0.001]\r\n\tautolearn=ham autolearn_force=no',),
                 'X-Spam-Level': ('',)},
        attachments=[
            dict(
                filename='Contract 25 04 2020.docx',
                content_id='',
                content_disposition='attachment',
                content_type='message/rfc822',
                payload=b'Return-Path: group@company.ru\nReceived: from m101.comp.ru (LHLO m101.comp.ru) (192.168.99.101) by\n m101.comp.ru\n with LMTP; Wed, 11 Oct 2017 13:54:33 +0500 (YEKT)\nReceived: from localhost (localhost [127.0.0.1])\n\tby m101.comp.ru (Postfix) with ESMTP id 04BDE6E3;\n\tWed, 11 Oct 2017 13:54:33 +0500 (YEKT)\nX-Spam-Flag: NO\nX-Spam-Score: -2.899\nX-Spam-Level: \nX-Spam-Status: No, score=-2.899 required=6.6 tests=[ALL_TRUSTED=-1,\n\tBAYES_00=-1.9, HTML_MESSAGE=0.001, RP_MATCHES_RCVD=-0.001,\n\tURIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no\nReceived: from m101.comp.ru ([127.0.0.1])\n\tby localhost (m101.comp.ru [127.0.0.1]) (amavisd-new, port 10032)\n\twith ESMTP id 3N3XVuSw23lT; Wed, 11 Oct 2017 13:54:32 +0500 (YEKT)\nReceived: from localhost (localhost [127.0.0.1])\n\tby m101.comp.ru (Postfix) with ESMTP id 83DB56E6;\n\tWed, 11 Oct 2017 13:54:32 +0500 (YEKT)\nX-Virus-Scanned: amavisd-new at m101.comp.ru\nReceived: from m101.comp.ru ([127.0.0.1])\n\tby localhost (m101.comp.ru [127.0.0.1]) (amavisd-new, port 10026)\n\twith ESMTP id ylUz-3bpEY_5; Wed, 11 Oct 2017 13:54:32 +0500 (YEKT)\nReceived: from web.hades.company (s192-168-99-108.some.ru [192.168.99.108])\n\tby m101.comp.ru (Postfix) with ESMTPSA id 5AE656E3;\n\tWed, 11 Oct 2017 13:54:32 +0500 (YEKT)\nContent-Type: multipart/alternative;\n boundary="===============3693132879591888836=="\nMIME-Version: 1.0\nSubject: =?UTF-8?B?0YHRgtCw0YLRg9GB?=    \nFrom: group@company.ru\nTo: group@company.ru\nDate: Wed, 11 Oct 2017 08:54:32 -0000\nMessage-ID: <20171011085432.15374.20485@web.hades.company>\n\n--===============3693132879591888836==\nContent-Type: text/plain; charset="utf-8"\nMIME-Version: 1.0\nContent-Transfer-Encoding: quoted-printable\n\n=D0=9D=D0=BE=D0=B2=D1=8B=D0=B9 =D0=B7=D0=B0=D0=BA=D0=B0=D0=B7 =E2=84=9628=\n922 http://group.company.ru/ru/order/28922/process/\n=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BB:=20\n=D0=9A=D0=BB=D0=B8=D0=B5=D0=BD=D1=82 =D0=9A=D0=BE=D0=B2=D1=87=D0=B5=D0=B3=\n (=D0=93=D1=83=D1=81=D0=B5=D0=B2 =D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9=\n)\n\n=D0=A1=D0=B5=D0=B3=D0=BC=D0=B5=D0=BD=D1=82=D1=8B:\n\n- =D0=9C=D0=BE=D1=81=D0=BA=D0=B2=D0=B0 - =D0=A2=D0=B5=D0=BB=D1=8C-=D0=90=D0=\n=B2=D0=B8=D0=B2, some-889, 15.03.2018, =D1=8D=D0=BA=D0=BE=D0=BD=D0=BE=D0=BC=\n: (15 =D0=B2=D0=B7=D1=80.)\n\n- =D0=A2=D0=B5=D0=BB=D1=8C-=D0=90=D0=B2=D0=B8=D0=B2 - =D0=9C=D0=BE=D1=81=D0=\n=BA=D0=B2=D0=B0, some-890, 22.03.2018, =D1=8D=D0=BA=D0=BE=D0=BD=D0=BE=D0=BC=\n: (15 =D0=B2=D0=B7=D1=80.)\n--===============3693132879591888836==\nContent-Type: text/html; charset="utf-8"\nMIME-Version: 1.0\nContent-Transfer-Encoding: quoted-printable\n\n\n\n    <!DOCTYPE html PUBLIC \'-//W3C//DTD XHTML 1.0 Strict//EN\' \'http://www.=\nw3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\'>\n    <html xmlns=3D\'http://www.w3.org/1999/xhtml\' lang=3D\'ru-ru\'\n          xml:lang=3D\'en-us\'>\n    <head>\n        <meta content=3D"text/html; charset=3DUTF-8" http-equiv=3D"Conten=\nt-Type">\n       =20\n    </head>\n\n    <body id=3D\'body\'>\n   =20\n   =20\n       =20\n        <a href=3D"http://group.company.ru/ru/order/28922/process/">\n           =20\n            =D0=9D=D0=BE=D0=B2=D1=8B=D0=B9 =D0=B7=D0=B0=D0=BA=D0=B0=D0=B7=\n =E2=84=9628922\n        </a><br>\n\n       =20\n        =D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BB:\n       =20\n            =D0=9A=D0=BB=D0=B8=D0=B5=D0=BD=D1=82 =D0=9A=D0=BE=D0=B2=D1=87=\n=D0=B5=D0=B3\n            (=D0=93=D1=83=D1=81=D0=B5=D0=B2 =D0=94=D0=BC=D0=B8=D1=82=D1=80=\n=D0=B8=D0=B9)\n        <br><br>\n       =20\n        =D0=A1=D0=B5=D0=B3=D0=BC=D0=B5=D0=BD=D1=82=D1=8B: <br>\n        <ul>\n           =20\n                <li>=D0=9C=D0=BE=D1=81=D0=BA=D0=B2=D0=B0 - =D0=A2=D0=B5=D0=\n=BB=D1=8C-=D0=90=D0=B2=D0=B8=D0=B2, some-889, 15.03.2018, =D1=8D=D0=BA=D0=BE=\n=D0=BD=D0=BE=D0=BC: (15 =D0=B2=D0=B7=D1=80.)</li>\n           =20\n                <li>=D0=A2=D0=B5=D0=BB=D1=8C-=D0=90=D0=B2=D0=B8=D0=B2 - =D0=\n=9C=D0=BE=D1=81=D0=BA=D0=B2=D0=B0, some-890, 22.03.2018, =D1=8D=D0=BA=D0=BE=\n=D0=BD=D0=BE=D0=BC: (15 =D0=B2=D0=B7=D1=80.)</li>\n           =20\n        </ul><br>\n       =20\n       =20\n   =20\n\n    </body>\n    </html>\n\n\n--===============3693132879591888836==--\n'
            ),
        ],
        from_values={'email': 'i.kor@company.ru', 'name': '', 'full': 'i.kor@company.ru'},
        to_values=({'email': 'jessica.schmidt@uni.de', 'name': 'Jessica Schmidt',
                    'full': 'Jessica Schmidt <jessica.schmidt@uni.de>'},
                   {'email': 'я你Rabea.Bartölke@uni.de', 'name': 'Rabea.Bartölke@uni.de',
                    'full': 'Rabea.Bartölke@uni.de <я你Rabea.Bartölke@uni.de>'}),
        cc_values=(),
        bcc_values=(),
        reply_to_values=(),
    ),

    # ===
    'attachment_2_base64': dict(
        subject='eml attachments ',
        from_='kaukinvk@yandex.ru',
        to=('imap.tools@ya.ru',),
        cc=(),
        bcc=(),
        reply_to=(),
        date=datetime.datetime(2019, 5, 1, 12, 20, 29,
                               tzinfo=datetime.timezone(datetime.timedelta(hours=5, minutes=0))),
        date_str='Wed, 01 May 2019 12:20:29 +0500',
        text="""UmVjZWl2ZWQ6IGZyb20gbXhmcm9udDJnLm1haWwueWFuZGV4Lm5ldCAoWzEyNy4wLjAuMV0pDQoJ

YjNmYmE0MGNjZDk2MDMwODRiZS0tDQo=""".replace('\n', '\r\n'),
        html='<div>two attach</div>',
        headers={'X-Yandex-Internal': ('1',), 'Received': (
            'from mxback2g.mail.yandex.net ([127.0.0.1])\r\n\tby mxback2g.mail.yandex.net with LMTP id GCaAmtYs;\r\n\tWed, 1 May 2019 10:20:30 +0300',
            'from mxback2g.mail.yandex.net (localhost.localdomain [127.0.0.1])\r\n\tby mxback2g.mail.yandex.net (Yandex) with ESMTP id C4C9426E11B7;\r\n\tWed,  1 May 2019 10:20:30 +0300 (MSK)',
            'from localhost (localhost [::1])\r\n\tby mxback2g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id HIJe2M7myP-KThSAlHL;\r\n\tWed, 01 May 2019 10:20:29 +0300',
            'by myt5-262fb1897c00.qloud-c.yandex.net with HTTP;\r\n\tWed, 01 May 2019 10:20:29 +0300'),
                 'X-Yandex-Spam': ('1',), 'Return-Path': ('kaukinvk@yandex.ru',), 'X-Yandex-Sender-Uid': ('52494202',),
                 'Envelope-From': ('kaukinvk@yandex.ru',),
                 'Message-Id': ('<8872861556695229@myt5-262fb1897c00.qloud-c.yandex.net>',),
                 'X-Yandex-TimeMark': ('1556695229.976',), 'To': ('imap.tools@ya.ru',), 'MIME-Version': ('1.0',),
                 'Authentication-Results': ('mxback2g.mail.yandex.net; dkim=pass header.i=@yandex.ru',),
                 'X-Yandex-Forward': ('d910e166fb8fe03380632bd988c8b67f',),
                 'X-Mailer': ('Yamail [ http://yandex.ru ] 5.0',), 'X-Yandex-Front': ('mxback2g.mail.yandex.net',),
                 'Subject': ('eml attachments ',), 'DKIM-Signature': (
                'v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1556695230;\r\n\tbh=Zmx9VIRnyRQRflnyRn1kpGYLdyO5YBC6/Wu9orXmTDk=;\r\n\th=Message-Id:Date:Subject:To:From;\r\n\tb=AM6LCew9Mz4XSIF78liQrYp4Kyg9RonJDizzaCNBRs5bOwla7bFphFQMIIYfmneJw\r\n\t 51WhDeo5L9ahRqG27no2kwmOggZ+Do99qY8oReCFObnfnaII6V2ZIvogKFXEfjHTB0\r\n\t bZlslZahe65zi1+xD7PnpeSWv8aYLZBgPuNJgA10=',),
                 'From': ('=?utf-8?B?0JrQsNGD0LrQuNC9INCS0LvQsNC00LjQvNC40YA=?= <kaukinvk@yandex.ru>',),
                 'Date': ('Wed, 01 May 2019 12:20:29 +0500',), 'Content-Type': (
                'multipart/mixed;\r\n\tboundary="----==--bound.887287.myt5-262fb1897c00.qloud-c.yandex.net"',)},
        attachments=[
            dict(
                filename='yandex_email.eml',
                content_id='',
                content_disposition='attachment',
                content_type='message/rfc822',
                payload=b'Received: from mxfront2g.mail.yandex.net ([127.0.0.1])\r\n\tby mxfront2g.mail.yandex.net with LMTP id SONmnPb1\r\n\tfor <KaukinVK@yandex.ru>; Sun, 28 Apr 2019 14:32:37 +0300\r\nReceived: from out-3.smtp.github.com (out-3.smtp.github.com [192.30.252.194])\r\n\tby mxfront2g.mail.yandex.net (nwsmtp/Yandex) with ESMTPS id IxG07LRtjb-Warm4eXW;\r\n\tSun, 28 Apr 2019 14:32:36 +0300\r\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\r\n\t(Client certificate not present)\r\nReturn-Path: noreply@github.com\r\nX-Yandex-Front: mxfront2g.mail.yandex.net\r\nX-Yandex-TimeMark: 1556451156.153\r\nAuthentication-Results: mxfront2g.mail.yandex.net; spf=pass (mxfront2g.mail.yandex.net: domain of github.com designates 192.30.252.194 as permitted sender, rule=[ip4:192.30.252.0/22]) smtp.mail=noreply@github.com; dkim=pass header.i=@github.com\r\nX-Yandex-Spam: 2\r\nX-Yandex-Fwd: OTM4OTM4Mjc2OTU3NTU3NTYyMyw5NzM5MTE2MTc5NzI0MTAxOTMw\r\nDate: Sun, 28 Apr 2019 04:32:35 -0700\r\nDKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com;\r\n\ts=pf2014; t=1556451155;\r\n\tbh=FsRPUKn3beupt2P3QB36UzfVESVClL07TVINnTX0nBg=;\r\n\th=Date:From:Reply-To:To:Cc:Subject:List-ID:List-Archive:List-Post:\r\n\t List-Unsubscribe:From;\r\n\tb=bzfQrv25o0IpZKiIrcGgLzDvM2VLfYficzjqSPPT0Rd3u3D66awwlxaVEHWqpE6dc\r\n\t 8ETR0+A3kN1V3xlo9Etlgn31105g3OQFG0jBMTdymdaXA/hu8Hrjr4Wf1krAGquHpq\r\n\t gJoF4ChuMuUhL554hguAmsWZ1BmzcjH6vVSa0ZEU=\r\nFrom: Buddy Rikard <notifications@github.com>\r\nReply-To: ikvk/imap_tools <reply+AAV6N2Z5ZMVYPVVMJBXEZE522LA5HEVBNHHBUHAPJU@reply.github.com>\r\nTo: ikvk/imap_tools <imap_tools@noreply.github.com>\r\nCc: Subscribed <subscribed@noreply.github.com>\r\nMessage-ID: <ikvk/imap_tools/issues/4@github.com>\r\nSubject: [ikvk/imap_tools] does not extract attached EML files (#4)\r\nMime-Version: 1.0\r\nContent-Type: multipart/alternative;\r\n boundary="--==_mimepart_5cc58f537542_49eb3fba40ccd9603084be";\r\n charset=UTF-8\r\nContent-Transfer-Encoding: 7bit\r\nPrecedence: list\r\nX-GitHub-Sender: TpyoKnig\r\nX-GitHub-Recipient: ikvk\r\nX-GitHub-Reason: subscribed\r\nList-ID: ikvk/imap_tools <imap_tools.ikvk.github.com>\r\nList-Archive: https://github.com/ikvk/imap_tools\r\nList-Post: <mailto:reply+AAV6N2Z5ZMVYPVVMJBXEZE522LA5HEVBNHHBUHAPJU@reply.github.com>\r\nList-Unsubscribe: <mailto:unsub+AAV6N2Z5ZMVYPVVMJBXEZE522LA5HEVBNHHBUHAPJU@reply.github.com>,\r\n <https://github.com/notifications/unsubscribe/AAV6N24RJYGGQBI5PKMGTK3PSWDNHANCNFSM4HI6JQUA>\r\nX-Auto-Response-Suppress: All\r\nX-GitHub-Recipient-Address: KaukinVK@yandex.ru\r\nX-Yandex-Forward: efb42d76edf7d5556112f3dac099406e\r\n\r\n\r\n----==_mimepart_5cc58f537542_49eb3fba40ccd9603084be\r\nContent-Type: text/plain;\r\n charset=UTF-8\r\nContent-Transfer-Encoding: 7bit\r\n\r\nAs .EML files have these headers:\r\n\r\n`--00000000000094809105878daac0\r\nContent-Type: message/rfc822; name="Totally legit email (2).eml"\r\nContent-Disposition: attachment; filename="Totally legit email (2).eml"\r\nContent-Transfer-Encoding: base64\r\nContent-ID: <f_jv0apprb0>\r\nX-Attachment-Id: f_jv0apprb0\r\n\r\nMIME-Version: 1.0\r\nDate: Fri, 25 Jan 2019 10:37:47 -0800\r\nMessage-ID: <CAKKXz3O5qFoTi68Ls4QCqZzQK8m6mASymTZ9ib6ysnBTOwwJOg@mail.gmail.com>\r\nSubject: Totally legit email\r\nFrom: REDACTED <REDACTED@DOMAIN.COM>\r\nTo: REDACTED <REDACTED@DOMAIN.COM>\r\nContent-Type: multipart/alternative; boundary="000000000000a30bb605804c9ff2"\r\n\r\n--000000000000a30bb605804c9ff2\r\nContent-Type: text/plain; charset="UTF-8"\r\nContent-Transfer-Encoding: quoted-printable`\r\n\r\nimap-tools does not return this as an attachment and completely disregards the attachment itself along with the filename. \r\n\r\n-- \r\nYou are receiving this because you are subscribed to this thread.\r\nReply to this email directly or view it on GitHub:\r\nhttps://github.com/ikvk/imap_tools/issues/4\r\n----==_mimepart_5cc58f537542_49eb3fba40ccd9603084be\r\nContent-Type: text/html;\r\n charset=UTF-8\r\nContent-Transfer-Encoding: 7bit\r\n\r\n<p>As .EML files have these headers:</p>\r\n<p>`--00000000000094809105878daac0<br>\r\nContent-Type: message/rfc822; name="Totally legit email (2).eml"<br>\r\nContent-Disposition: attachment; filename="Totally legit email (2).eml"<br>\r\nContent-Transfer-Encoding: base64<br>\r\nContent-ID: &lt;f_jv0apprb0&gt;<br>\r\nX-Attachment-Id: f_jv0apprb0</p>\r\n<p>MIME-Version: 1.0<br>\r\nDate: Fri, 25 Jan 2019 10:37:47 -0800<br>\r\nMessage-ID: <a href="mailto:CAKKXz3O5qFoTi68Ls4QCqZzQK8m6mASymTZ9ib6ysnBTOwwJOg@mail.gmail.com">CAKKXz3O5qFoTi68Ls4QCqZzQK8m6mASymTZ9ib6ysnBTOwwJOg@mail.gmail.com</a><br>\r\nSubject: Totally legit email<br>\r\nFrom: REDACTED <a href="mailto:REDACTED@DOMAIN.COM">REDACTED@DOMAIN.COM</a><br>\r\nTo: REDACTED <a href="mailto:REDACTED@DOMAIN.COM">REDACTED@DOMAIN.COM</a><br>\r\nContent-Type: multipart/alternative; boundary="000000000000a30bb605804c9ff2"</p>\r\n<p>--000000000000a30bb605804c9ff2<br>\r\nContent-Type: text/plain; charset="UTF-8"<br>\r\nContent-Transfer-Encoding: quoted-printable`</p>\r\n<p>imap-tools does not return this as an attachment and completely disregards the attachment itself along with the filename.</p>\r\n\r\n<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/ikvk/imap_tools/issues/4">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAV6N2ZD2P5MW33322GDAFTPSWDNHANCNFSM4HI6JQUA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAV6N27JEB4SBCE3VILPO6LPSWDNHANCNFSM4HI6JQUA.gif" height="1" width="1" alt="" /></p>\r\n<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/ikvk/imap_tools","title":"ikvk/imap_tools","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/ikvk/imap_tools"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"does not extract attached EML files (#4)"}],"action":{"name":"View Issue","url":"https://github.com/ikvk/imap_tools/issues/4"}}}</script>\r\n<script type="application/ld+json">[\r\n{\r\n"@context": "http://schema.org",\r\n"@type": "EmailMessage",\r\n"potentialAction": {\r\n"@type": "ViewAction",\r\n"target": "https://github.com/ikvk/imap_tools/issues/4",\r\n"url": "https://github.com/ikvk/imap_tools/issues/4",\r\n"name": "View Issue"\r\n},\r\n"description": "View this Issue on GitHub",\r\n"publisher": {\r\n"@type": "Organization",\r\n"name": "GitHub",\r\n"url": "https://github.com"\r\n}\r\n}\r\n]</script>\r\n----==_mimepart_5cc58f537542_49eb3fba40ccd9603084be--\r\n'
            ),
            dict(
                filename='yandex_email.eml',
                content_id='',
                content_disposition='attachment',
                content_type='message/rfc822',
                payload=b'Received: from mxfront2g.mail.yandex.net ([127.0.0.1])\r\n\tby mxfront2g.mail.yandex.net with LMTP id SONmnPb1\r\n\tfor <KaukinVK@yandex.ru>; Sun, 28 Apr 2019 14:32:37 +0300\r\nReceived: from out-3.smtp.github.com (out-3.smtp.github.com [192.30.252.194])\r\n\tby mxfront2g.mail.yandex.net (nwsmtp/Yandex) with ESMTPS id IxG07LRtjb-Warm4eXW;\r\n\tSun, 28 Apr 2019 14:32:36 +0300\r\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\r\n\t(Client certificate not present)\r\nReturn-Path: noreply@github.com\r\nX-Yandex-Front: mxfront2g.mail.yandex.net\r\nX-Yandex-TimeMark: 1556451156.153\r\nAuthentication-Results: mxfront2g.mail.yandex.net; spf=pass (mxfront2g.mail.yandex.net: domain of github.com designates 192.30.252.194 as permitted sender, rule=[ip4:192.30.252.0/22]) smtp.mail=noreply@github.com; dkim=pass header.i=@github.com\r\nX-Yandex-Spam: 2\r\nX-Yandex-Fwd: OTM4OTM4Mjc2OTU3NTU3NTYyMyw5NzM5MTE2MTc5NzI0MTAxOTMw\r\nDate: Sun, 28 Apr 2019 04:32:35 -0700\r\nDKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com;\r\n\ts=pf2014; t=1556451155;\r\n\tbh=FsRPUKn3beupt2P3QB36UzfVESVClL07TVINnTX0nBg=;\r\n\th=Date:From:Reply-To:To:Cc:Subject:List-ID:List-Archive:List-Post:\r\n\t List-Unsubscribe:From;\r\n\tb=bzfQrv25o0IpZKiIrcGgLzDvM2VLfYficzjqSPPT0Rd3u3D66awwlxaVEHWqpE6dc\r\n\t 8ETR0+A3kN1V3xlo9Etlgn31105g3OQFG0jBMTdymdaXA/hu8Hrjr4Wf1krAGquHpq\r\n\t gJoF4ChuMuUhL554hguAmsWZ1BmzcjH6vVSa0ZEU=\r\nFrom: Buddy Rikard <notifications@github.com>\r\nReply-To: ikvk/imap_tools <reply+AAV6N2Z5ZMVYPVVMJBXEZE522LA5HEVBNHHBUHAPJU@reply.github.com>\r\nTo: ikvk/imap_tools <imap_tools@noreply.github.com>\r\nCc: Subscribed <subscribed@noreply.github.com>\r\nMessage-ID: <ikvk/imap_tools/issues/4@github.com>\r\nSubject: [ikvk/imap_tools] does not extract attached EML files (#4)\r\nMime-Version: 1.0\r\nContent-Type: multipart/alternative;\r\n boundary="--==_mimepart_5cc58f537542_49eb3fba40ccd9603084be";\r\n charset=UTF-8\r\nContent-Transfer-Encoding: 7bit\r\nPrecedence: list\r\nX-GitHub-Sender: TpyoKnig\r\nX-GitHub-Recipient: ikvk\r\nX-GitHub-Reason: subscribed\r\nList-ID: ikvk/imap_tools <imap_tools.ikvk.github.com>\r\nList-Archive: https://github.com/ikvk/imap_tools\r\nList-Post: <mailto:reply+AAV6N2Z5ZMVYPVVMJBXEZE522LA5HEVBNHHBUHAPJU@reply.github.com>\r\nList-Unsubscribe: <mailto:unsub+AAV6N2Z5ZMVYPVVMJBXEZE522LA5HEVBNHHBUHAPJU@reply.github.com>,\r\n <https://github.com/notifications/unsubscribe/AAV6N24RJYGGQBI5PKMGTK3PSWDNHANCNFSM4HI6JQUA>\r\nX-Auto-Response-Suppress: All\r\nX-GitHub-Recipient-Address: KaukinVK@yandex.ru\r\nX-Yandex-Forward: efb42d76edf7d5556112f3dac099406e\r\n\r\n\r\n----==_mimepart_5cc58f537542_49eb3fba40ccd9603084be\r\nContent-Type: text/plain;\r\n charset=UTF-8\r\nContent-Transfer-Encoding: 7bit\r\n\r\nAs .EML files have these headers:\r\n\r\n`--00000000000094809105878daac0\r\nContent-Type: message/rfc822; name="Totally legit email (2).eml"\r\nContent-Disposition: attachment; filename="Totally legit email (2).eml"\r\nContent-Transfer-Encoding: base64\r\nContent-ID: <f_jv0apprb0>\r\nX-Attachment-Id: f_jv0apprb0\r\n\r\nMIME-Version: 1.0\r\nDate: Fri, 25 Jan 2019 10:37:47 -0800\r\nMessage-ID: <CAKKXz3O5qFoTi68Ls4QCqZzQK8m6mASymTZ9ib6ysnBTOwwJOg@mail.gmail.com>\r\nSubject: Totally legit email\r\nFrom: REDACTED <REDACTED@DOMAIN.COM>\r\nTo: REDACTED <REDACTED@DOMAIN.COM>\r\nContent-Type: multipart/alternative; boundary="000000000000a30bb605804c9ff2"\r\n\r\n--000000000000a30bb605804c9ff2\r\nContent-Type: text/plain; charset="UTF-8"\r\nContent-Transfer-Encoding: quoted-printable`\r\n\r\nimap-tools does not return this as an attachment and completely disregards the attachment itself along with the filename. \r\n\r\n-- \r\nYou are receiving this because you are subscribed to this thread.\r\nReply to this email directly or view it on GitHub:\r\nhttps://github.com/ikvk/imap_tools/issues/4\r\n----==_mimepart_5cc58f537542_49eb3fba40ccd9603084be\r\nContent-Type: text/html;\r\n charset=UTF-8\r\nContent-Transfer-Encoding: 7bit\r\n\r\n<p>As .EML files have these headers:</p>\r\n<p>`--00000000000094809105878daac0<br>\r\nContent-Type: message/rfc822; name="Totally legit email (2).eml"<br>\r\nContent-Disposition: attachment; filename="Totally legit email (2).eml"<br>\r\nContent-Transfer-Encoding: base64<br>\r\nContent-ID: &lt;f_jv0apprb0&gt;<br>\r\nX-Attachment-Id: f_jv0apprb0</p>\r\n<p>MIME-Version: 1.0<br>\r\nDate: Fri, 25 Jan 2019 10:37:47 -0800<br>\r\nMessage-ID: <a href="mailto:CAKKXz3O5qFoTi68Ls4QCqZzQK8m6mASymTZ9ib6ysnBTOwwJOg@mail.gmail.com">CAKKXz3O5qFoTi68Ls4QCqZzQK8m6mASymTZ9ib6ysnBTOwwJOg@mail.gmail.com</a><br>\r\nSubject: Totally legit email<br>\r\nFrom: REDACTED <a href="mailto:REDACTED@DOMAIN.COM">REDACTED@DOMAIN.COM</a><br>\r\nTo: REDACTED <a href="mailto:REDACTED@DOMAIN.COM">REDACTED@DOMAIN.COM</a><br>\r\nContent-Type: multipart/alternative; boundary="000000000000a30bb605804c9ff2"</p>\r\n<p>--000000000000a30bb605804c9ff2<br>\r\nContent-Type: text/plain; charset="UTF-8"<br>\r\nContent-Transfer-Encoding: quoted-printable`</p>\r\n<p>imap-tools does not return this as an attachment and completely disregards the attachment itself along with the filename.</p>\r\n\r\n<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/ikvk/imap_tools/issues/4">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAV6N2ZD2P5MW33322GDAFTPSWDNHANCNFSM4HI6JQUA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAV6N27JEB4SBCE3VILPO6LPSWDNHANCNFSM4HI6JQUA.gif" height="1" width="1" alt="" /></p>\r\n<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/ikvk/imap_tools","title":"ikvk/imap_tools","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/ikvk/imap_tools"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"does not extract attached EML files (#4)"}],"action":{"name":"View Issue","url":"https://github.com/ikvk/imap_tools/issues/4"}}}</script>\r\n<script type="application/ld+json">[\r\n{\r\n"@context": "http://schema.org",\r\n"@type": "EmailMessage",\r\n"potentialAction": {\r\n"@type": "ViewAction",\r\n"target": "https://github.com/ikvk/imap_tools/issues/4",\r\n"url": "https://github.com/ikvk/imap_tools/issues/4",\r\n"name": "View Issue"\r\n},\r\n"description": "View this Issue on GitHub",\r\n"publisher": {\r\n"@type": "Organization",\r\n"name": "GitHub",\r\n"url": "https://github.com"\r\n}\r\n}\r\n]</script>\r\n----==_mimepart_5cc58f537542_49eb3fba40ccd9603084be--\r\n'
            ),
        ],
        from_values={'email': 'kaukinvk@yandex.ru', 'name': 'Каукин Владимир',
                     'full': 'Каукин Владимир <kaukinvk@yandex.ru>'},
        to_values=({'email': 'imap.tools@ya.ru', 'name': '', 'full': 'imap.tools@ya.ru'},),
        cc_values=(),
        bcc_values=(),
        reply_to_values=(),
    ),
    'double_fields': dict(
        subject='double_fields',
        from_='kaukinvk@yandex.ru',
        to=('aa@aa.ru', 'bb@aa.ru'),
        cc=('cc@aa.ru', 'dd@aa.ru'),
        bcc=('zz1@aa.ru', 'zz2@aa.ru'),
        reply_to=('foma1@company.ru', 'petr1@company.ru', 'foma2@company.ru', 'petr2@company.ru'),
        date=datetime.datetime(2019, 5, 1, 12, 20),
        date_str='Wed, 01 May 2019 12:20',
        text='',
        html='<div>double_fields</div>',
        headers={'To': ('aa@aa.ru', 'bb@aa.ru', ''),
                 'From': ('=?utf-8?B?0JrQsNGD0LrQuNC9INCS0LvQsNC00LjQvNC40YA=?= <kaukinvk@yandex.ru>',),
                 'Return-Path': ('kaukinvk@yandex.ru',), 'Envelope-From': ('kaukinvk@yandex.ru',),
                 'Date': ('Wed, 01 May 2019 12:20',), 'Subject': ('double_fields',),
                 'Message-Id': ('<8872861556695229@myt5-262fb1897c00.qloud-c.yandex.net>',), 'MIME-Version': ('1.0',),
                 'Content-Type': (
                     'multipart/mixed;\r\n\tboundary="----==--bound.887287.myt5-262fb1897c00.qloud-c.yandex.net"',),
                 'Reply-To': (
                     '=?UTF-8?B?0L/RgNC40LLQtdGC?= <foma1@company.ru>,\r\n =?UTF-8?B?0L/QvtC60LA=?= <petr1@company.ru>',
                     '=?UTF-8?B?0L/RgNC40LLQtdGC?= <foma2@company.ru>,\r\n =?UTF-8?B?0L/QvtC60LA=?= <petr2@company.ru>'),
                 'Bcc': ('zz1@aa.ru', 'zz2@aa.ru'), 'Cc': ('cc@aa.ru', 'dd@aa.ru')},
        attachments=[],
        from_values={'email': 'kaukinvk@yandex.ru', 'name': 'Каукин Владимир',
                     'full': 'Каукин Владимир <kaukinvk@yandex.ru>'},
        to_values=(
            {'email': 'aa@aa.ru', 'name': '', 'full': 'aa@aa.ru'},
            {'email': 'bb@aa.ru', 'name': '', 'full': 'bb@aa.ru'}),
        cc_values=(
            {'email': 'cc@aa.ru', 'name': '', 'full': 'cc@aa.ru'},
            {'email': 'dd@aa.ru', 'name': '', 'full': 'dd@aa.ru'}),
        bcc_values=({'email': 'zz1@aa.ru', 'name': '', 'full': 'zz1@aa.ru'},
                    {'email': 'zz2@aa.ru', 'name': '', 'full': 'zz2@aa.ru'}),
        reply_to_values=({'email': 'foma1@company.ru', 'name': 'привет', 'full': 'привет <foma1@company.ru>'},
                         {'email': 'petr1@company.ru', 'name': 'пока', 'full': 'пока <petr1@company.ru>'},
                         {'email': 'foma2@company.ru', 'name': 'привет', 'full': 'привет <foma2@company.ru>'},
                         {'email': 'petr2@company.ru', 'name': 'пока', 'full': 'пока <petr2@company.ru>'}),
    ),
    'attachment_inline': dict(
        subject='Mail.Ru – больше, чем почта. Познакомьтесь с проектами Mail.Ru Group',
        from_='welcome@corp.mail.ru',
        to=('imap.tools@mail.ru',),
        cc=(),
        bcc=(),
        reply_to=(),
        date=datetime.datetime(1900, 1, 1, 0, 0),
        date_str='',
        text="""Здравствуйте\r\n""",
        html="""<html>\r\n  <head>\r\n    <meta http-equiv="content-type" content="text/html; charset=utf-8">\r\n  </head>\r\n  <body bgcolor="#FFFFFF" text="#000000">\r\n    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r\n        \r\n    <div style="line-height:0;font-size:0;"><img\r\n                src="cid:part1.02000503.06000807@mail.ru" alt=""\r\n                style="width:28px;height:1px;" height="1" width="28"></div>\r\n\r\n    <div style="line-height:0;height:25px;" class="mmwe3-mso_lh5"><img\r\n                src="cid:part51.09060808.01070700@mail.ru"\r\n                style="width:125px;height:25px;" alt="@Mail.Ru"\r\n                height="25" width="125"></div>\r\n                \r\n    <div style="line-height:0;height:60px;" class="mmwe3-mso_lh4"><a\r\n                        href="https://www.odnoklassniki.ru/pochtamail"\r\n                        title="Одноклассники"><img\r\n                          src="cid:part41.01020108.09060604@mail.ru"\r\n                          style="width:60px;height:60px;"\r\n                          alt="Одноклассники" height="60" width="60"></a></div>\r\n\r\n  </body>\r\n</html>\r\n""",
        headers={'Content-Type': ('multipart/alternative;\r\n boundary="------------080400030209020702000207"',),
                 'From': ('=?UTF-8?B?0JrQvtC80LDQvdC00LAg0J/QvtGH0YLRiyBNYWlsLlJ1?=\r\n <welcome@corp.mail.ru>',),
                 'MIME-Version': ('1.0',), 'To': ('imap.tools@mail.ru',), 'Subject': (
            '=?UTF-8?B?TWFpbC5SdSDigJMg0LHQvtC70YzRiNC1LCDRh9C10Lwg0L/QvtGH0YLQsC4g?=\r\n =?UTF-8?B?0J/QvtC30L3QsNC60L7QvNGM0YLQtdGB0Ywg0YEg0L/RgNC+0LXQutGC0LA=?=\r\n =?UTF-8?B?0LzQuCBNYWlsLlJ1IEdyb3Vw?=',)},
        attachments=[
            dict(
                filename='blank.png',
                content_id='part1.02000503.06000807@mail.ru',
                content_disposition='inline',
                content_type='image/png',
                payload=b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x08\x00\x00\x00\x08\x01\x00\x00\x00\x00\xect\x83&\x00\x00\x00\x02tRNS\x00\x01\x01\x94\xfd\xae\x00\x00\x00\x0bIDATx\x01c\xfc\x8f\n\x01@\x18\x08\x01\xdez\xda\x08\x00\x00\x00\x00IEND\xaeB`\x82',
            ),
            dict(
                filename='sm-ok.png',
                content_id='part41.01020108.09060604@mail.ru',
                content_disposition='inline',
                content_type='image/png',
                payload=b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00<\x00\x00\x00<\x08\x03\x00\x00\x00\r")@\x00\x00\x00\x19tEXtSoftware\x00Adobe ImageReadyq\xc9e<\x00\x00\x01\xd1PLTE\xffs\x01\xfft\x03\xffu\x06\xff\xf7\xf0\xff\x84!\xff\x93<\xff\xf3\xe9\xff\xfc\xf9\xff\x94>\xff\xde\xc3\xff\xdd\xc1\xff\xf5\xed\xff\xda\xbc\xff\xc8\x9b\xffs\x02\xff\xf8\xf3\xff\xael\xff\x906\xff\xfc\xfa\xff\xef\xe2\xff\xf0\xe3\xff\x8b-\xff\xf4\xec\xff\xa2W\xff\x94=\xff\x81\x1c\xff\xc8\x9c\xff\xeb\xda\xff\xd7\xb7\xfft\x04\xff\xba\x83\xff\xcc\xa2\xff\x9fQ\xff\xd1\xac\xff\xfd\xfb\xff\xfb\xf8\xff\xf6\xef\xff\xd0\xaa\xff\xa3Y\xff\x92:\xffy\x0c\xff{\x10\xff\xbd\x87\xff\xee\xe1\xff\xf3\xea\xffv\x08\xff\xeb\xdb\xff\x9bK\xff\xa2V\xff\xc9\x9d\xff\xc1\x8f\xff\x9cL\xff\xf7\xf1\xff\xfa\xf6\xff\x8f5\xff\xf1\xe6\xff\xee\xe0\xff\xd7\xb6\xff\xc9\x9e\xff\xa3X\xff\xc7\x99\xff\xadj\xffu\x05\xff\x8e3\xff\xadk\xffz\x0f\xff\xa0S\xff{\x11\xff\xdd\xc2\xff\xf8\xf2\xff\x929\xff\xdc\xbf\xff\x93;\xff\x8e2\xff\xdc\xc0\xff\x97C\xff\xcf\xa9\xff\xba\x82\xff\xc7\x9a\xffy\r\xff\x83\x1e\xff\xa4[\xff\xa8b\xff\x8d0\xff|\x12\xff\x88\'\xff\xb7}\xff\xc3\x93\xff\x9fR\xff\xed\xdf\xff\x86%\xff\x96B\xff\x8c/\xff\xd3\xb0\xff\xca\xa0\xff\xa9c\xff\xaci\xff\xe8\xd5\xff\xbf\x8c\xff\xed\xde\xff\xaem\xff\x918\xffv\x07\xff\xbf\x8b\xff\xdb\xbe\xffx\n\xff\xafo\xff\xc3\x92\xff\x95?\xff\xca\x9f\xff\xbd\x88\xff\xc6\x98\xff\x81\x1b\xff\xd6\xb4\xff\x9aH\xff\xec\xdd\xff\xd3\xaf\xff\xd9\xbb\xff\xf9\xf5\xff\x8d1\xff\xf9\xf4\xff\xc5\x96\xff\x907\xff\xf0\xe4\xff\xa9d\xff\xaae\xff\x8a,\xff\xd2\xae\xff\x95@\xff\xfd\xfc\xff\x83\x1f\xff\xd6\xb5\xff\xd8\xb8\xff\xa0T\xff\xc5\x97\xff\xbe\x89\xff\xbe\x8a\xff}\x14\xff\x96A\xff\xa4Z\xffz\x0e\xff\xf6\xee\xff\x84 \xff\xce\xa7\xff\xd4\xb2\xff\x9aI\xff\xcd\xa5\xff}\x13\xff\xf2\xe7\xff\xa1U\xff\x8a+\xff\xbb\x84\xff\xd4\xb1\xffr\x00\xff\xff\xff\xe4\xd8\x99$\x00\x00\x03\xcbIDATx\xda\xac\x97g_\x13A\x10\x877\xb9\x90J\x08\x81P\x12i!\x14)J/J\x17\xa5*\xa0" \x08*J\xb5\xf7\xde{\xefe\xf6\xd3:sg\x80d\xe7\x92X\xe6\r\xfbc\xe6\xc9\xee\xed\xee\xfcgVH\xd6\xb4\x82\xa2\x8e\xdb\xc1\xed\x00\xdb\x83\xfe\x8e\xa2\x02\x8d\x8f\x12\xcc\xff\x02\x8b\x95\x16\x881K\xe5bMJ\xb0\xbb)\x8e\xfc\xcd7\x8d$\x85\x07\xf3\xf5\xd0\x8c\xe1\xcc\x90\xab\xdd\'\xa5\xaf\xdd\x15\xca\x1c\xce\xd0\xff\x99?\x98\x10n;HA\xc2\xd9Y\x1b\x1bU\xdb\xe9\x14\xe49\xd8f\x0e\x97\xf7a\x80\xf5\xf86ns\xb6\x1d\xb7\xa2\xb3\xaf\xdc\x04vd\xd2\x8f\xe7\xd5H\x13\xcb\xee \x7ff\x84\x83\xf7\x8d\xa2\xcb\x96.\x13X\xba\rC\x9c\x1e\x15\xae\xedAGI\x99Lhe3\x18t\xac6\x1e\xd6\x86q\xa3\xce\xcb\xa4v\x1e7\xee\x86\x16\x0b;\xe6\xf0$\x8be\nV\x8c\xb7`\xce\x11\x03w\xe1\xbc\x9d2%\xeb\xc4\xb9\xbb\xb6\xc2\xe5\xf8)\xd52E\xab\xc6\xe0\xfd\x9b\xf0\x9d*\x80\x19\x99\xb2\xed\x01\xa8\nl\xc0%xFZ\xea\xb0\x86\'V\x12\x85Wq\x1d\xe9\xf2\x0f,\xfd7@p\x1a@\x05\x1btr~\xfe$\xeb\xa8\x00H3`7\xc0\x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98\n\xa0\xac\xc3^!\xdeYPHT\xa5\xa6\r\xd0\xdf\xee\xa7\xcc^\xd7m\x88~ \xcey\x99\x984L\xb7\xe6!\x1a}2\x15}\xae\xdc\xd4S\xf3\xa1\xdfI\x1f5f\xf5\xa6\xe5f\xa3nm\xb1\xf6%k\xc7ucx3\xcf\xba\x94\xad\x16\xbak\xff\xa3\xc4\xca\x00\x16\xf7=\x7f[\xdc\xe5\xfe\x7fh+\xa4<\x81\x9a\xe2M\x8d\xf5\xa2\xf8\x9c\x88m\xa5\x1e\xfeI+\xe5\x8cm\xa5d.f\x89x\x91\x9c}\x89\xf3\xe6\xe4\xc6\xb7\x8f\xf6\xc3\xf8)\xcf\x92\xb5\x8f\xdf0(\xc7\xae6\xae\xcd\xaf\xa9\x89p\'b\xdd\xd4\xb8\xe6{\xb8\x969\xd2KR|(`\x86\x06\x0e\x91NwE\x126\xebw\xf9f\xfd\x1e\xe5\xd9\xdb\xf2\x04\xcf\x847\xc63\xc1\x9b\x1b\'\xd2^\xe3\x99P\xd1\x96\xf8\x81b\xd4(K\xeb\xba\xfe@\xc9zw\xc5\xd5\xb0\xee7\xc4th5\xe9\xd3h\xa4.\x83{\x1ae\xd4%\x7f\x1a\x91\xd5\xac\x0c\xc4?\xca\x06VR{\x94E\x9f\x83\xf5\xad\xb6\xfe\xee\xee~[k\xbd\xe9s\xf0\x97\x00\x03\x003\xa2}\xdf\xee~*\xa5\x00\x00\x00\x00IEND\xaeB`\x82',
            ),
            dict(
                filename='logo.png',
                content_id='part51.09060808.01070700@mail.ru',
                content_disposition='inline',
                content_type='image/png',
                payload=b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00}\x00\x00\x00\x19\x08\x03\x00\x00\x00+;\xd1[\x00\x00\x00\x19tEXtSoftware\x00Adobe ImageReadyq\xc9e<\x00\x00\x00fPLTE\xfd\xfd\xfd\xfe\xfe\xfe\xf3\xf3\xf3\xec\xec\xec\xe8\xe8\xe8\xdf\xdf\x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7\xda\x96\xf7\xce\xc7\xd7Ecz"OSdbv\x84\xb6\x142`Z\\B\xe98\x17\xb22\x89\x8a\xdd\t\xcfUm4\xddQ\xd98\xb4.\xd21\x84\xb07\xfdF_S\xe2\xc9\xbe}\xdb`\x1f\x8f\x9f\xa4X\x96>TV\xe6\x89~\x9d\x96\xba\x92\x99\xa7u\xeaz\xc6#/\xf22j\x19|\x91\xa1\xd2\x9e\xb9Q{\x1b\x955ZA*\x13\xafx\xbf\xf1j\xb0\xa8\xd9\xd9\x97\xd5\x93"\x1bz\xbf\n\xb6\xa3\xf7\x07\xc3\x16a\xf6\xf7\x8f\xca\xbf\xa7C\xa6\x9e>\xd4+\x18\xca\x87\xfa\x07\xfa\x7f\x8c/\x01\x06\x00\xcc\x9eX\xf3u\xe2\x94\xf6\x00\x00\x00\x00IEND\xaeB`\x82',
            ),
        ],
        from_values={'email': 'welcome@corp.mail.ru', 'name': 'Команда Почты Mail.Ru',
                     'full': 'Команда Почты Mail.Ru <welcome@corp.mail.ru>'},
        to_values=({'email': 'imap.tools@mail.ru', 'name': '', 'full': 'imap.tools@mail.ru'},),
        cc_values=(),
        bcc_values=(),
        reply_to_values=(),
    ),
}
