-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+MailAttachment.__str__, fix MailMessage.text,html
- Loading branch information
Showing
99 changed files
with
137 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ | |
from .utils import EmailAddress | ||
from .errors import * | ||
|
||
__version__ = '1.8.0' | ||
__version__ = '1.9.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
cc=('[email protected]', '[email protected]', '[email protected]'), | ||
bcc=('[email protected]', '[email protected]', '[email protected]'), | ||
reply_to=(), | ||
date=datetime.datetime(2020, 11, 1, 14, 49, 7, tzinfo=datetime.timezone(datetime.timedelta(-1, 57600))), | ||
date=datetime.datetime(2020, 11, 1, 14, 49, 7, tzinfo=datetime.timezone(datetime.timedelta(days=-1, seconds=57600))), | ||
date_str='Mon, 01 Nov 2020 14:49:07 -0800 (PST)', | ||
text='Daily Data: D09.ZPH (Averaged data)\nEmail generated: 10/11/2020 00:04:03.765\nEmail sent: 10/11/2020 00:49:03.125', | ||
html='', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,9 @@ | |
cc=(), | ||
bcc=(), | ||
reply_to=(), | ||
date=datetime.datetime(2017, 10, 12, 9, 41, 56, tzinfo=datetime.timezone(datetime.timedelta(0, 18000))), | ||
date=datetime.datetime(2017, 10, 12, 9, 41, 56, tzinfo=datetime.timezone(datetime.timedelta(seconds=18000))), | ||
date_str='Thu, 12 Oct 2017 09:41:56 +0500', | ||
text='\r\n', | ||
text='\r\nНовый заказ №28922 http://group.company.ru/ru/order/28922/process/\r\nСоздал: \r\nКлиент Ковчег (Гусев Дмитрий)\r\n\r\nСегменты:\r\n\r\n- Москва - Тель-Авив, some-889, 15.03.2018, эконом: (15 взр.)\r\n\r\n- Тель-Авив - Москва, some-890, 22.03.2018, эконом: (15 взр.)', | ||
html='\r\n\r\n <!DOCTYPE html PUBLIC \'-//W3C//DTD XHTML 1.0 Strict//EN\' \'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\'>\r\n <html xmlns=\'http://www.w3.org/1999/xhtml\' lang=\'ru-ru\'\r\n xml:lang=\'en-us\'>\r\n <head>\r\n <meta content="text/html; charset=utf-8" http-equiv="Content-Type">\r\n \r\n </head>\r\n\r\n <body id=\'body\'>\r\n \r\n \r\n \r\n <a href="http://group.company.ru/ru/order/28922/process/">\r\n \r\n Новый заказ №28922\r\n </a><br>\r\n\r\n \r\n Создал:\r\n \r\n Клиент Ковчег\r\n (Гусев Дмитрий)\r\n <br><br>\r\n \r\n Сегменты: <br>\r\n <ul>\r\n \r\n <li>Москва - Тель-Авив, some-889, 15.03.2018, эконом: (15 взр.)</li>\r\n \r\n <li>Тель-Авив - Москва, some-890, 22.03.2018, эконом: (15 взр.)</li>\r\n \r\n </ul><br>\r\n \r\n \r\n \r\n\r\n </body>\r\n </html>\r\n\r\n', | ||
headers={'return-path': ('[email protected]',), '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 <[email protected]>; Thu, 12 Oct 2017 09:41:56 +0500 (YEKT)'), 'x-spam-flag': ('NO',), 'x-spam-score': ('-2.898',), 'x-spam-level': ('',), '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-virus-scanned': ('amavisd-new at m101.comp.ru',), 'references': ('<[email protected]>',), 'subject': ('=?UTF-8?B?0YHRgtCw0YLRg9GB?= ',), 'to': ('Jessica Schmidt <[email protected]>,\r\n\t=?iso-8859-1?Q?Rabea=2EBart=F6lke=40uni=2Ede?= <\udcd1\udc8f\udce4\udcbd\udca0Rabea.Bart\udcc3\udcb6[email protected]>',), 'from': ('[email protected]',), 'x-forwarded-message-id': ('<[email protected]>',), 'message-id': ('<[email protected]>',), 'date': ('Thu, 12 Oct 2017 09:41:56 +0500',), 'user-agent': ('Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101\r\n Thunderbird/52.4.0',), 'mime-version': ('1.0',), 'in-reply-to': ('<[email protected]>',), 'content-type': ('multipart/mixed;\r\n boundary="------------BF90926EC9DF73443A6B8F28"',), 'content-language': ('ru',)}, | ||
attachments=[ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,10 @@ | |
cc=('[email protected]', '[email protected]'), | ||
bcc=('[email protected]',), | ||
reply_to=(), | ||
date=datetime.datetime(2019, 2, 7, 13, 18, 20, tzinfo=datetime.timezone(datetime.timedelta(0, 18000))), | ||
date=datetime.datetime(2019, 2, 7, 13, 18, 20, tzinfo=datetime.timezone(datetime.timedelta(seconds=18000))), | ||
date_str='Thu, 7 Feb 2019 13:18:20 +0500', | ||
text='SCR\r\n\r\n/\r\nS19\r\n07FEB\r\nwat\r\n\r\n-- \r\nотдел расписания\r\nтел. (343) 072-00-00 (вн.18-59)\r\ne-mail: [email protected]\r\n\r\n', | ||
html='<html>\r\n <head>\r\n\r\n <meta http-equiv="content-type" content="text/html; charset=utf-8">\r\n </head>\r\n <body text="#000000" bgcolor="#FFFFFF">\r\n <p>SCR<br>\r\n </p>\r\n <div class="moz-forward-container">/<br>\r\n S19<br>\r\n 07FEB<br>\r\n wat<br></div>\r\n <pre class="moz-signature" cols="72">-- \r\nотдел расписания\r\nтел. (343) 072-00-00 (вн.18-59)\r\ne-mail: <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a></pre>\r\n </body>\r\n</html>\r\n', | ||
text='SCR\r\n\r\n/\r\nS19\r\n07FEB\r\nwat\r\n\r\n-- \r\nотдел расписания\r\nтел. (343) 072-00-00 (вн.18-59)\r\ne-mail: [email protected]\r\n\r\nДобрый\xa0день,\xa0уважаемые\xa0коллеги!\r\n\r\n\r\n\r\n\r\n-------- Перенаправленное сообщение --------\r\nТема: \tВвод рейсов ТЮМ, ЧЛБ, ОМС на Лето 2019\r\nДата: \tFri, 7 Dec 2018 08:23:21 +0500\r\nОт: \tПлёткина <[email protected]>\r\nКому: \tБелобородова О.Н. <[email protected]>\r\n\r\n\r\n\r\nДобрый\xa0день,\xa0уважаемые\xa0коллеги!\r\n\r\nПрошу ввести рейс на период летней навигации\r\n\r\n*ДМД-ТЮМ-ДМД \xa0 У6-341/342*\xa0 тип ВС А320\r\n\r\nВВ из ДМД 23:00 LT. ВВ из ТЮМ 06:45 LT\r\n\r\nисключение период с 25/05/19 по 13/10/19\r\n\r\nВВ из ДМД в 00:50 LT\r\n\r\nВВ из ТЮМ остается без изменения\r\n\r\n----------------------------------------\r\n\r\n*ДМД-ОМС-ДМД \xa0 У6-387/388*\xa0 тип ВС А321\r\n\r\nВВ из ДМД в 23:15. ВВ из ОМС 06:30 LT\r\n\r\n----------------------------------------\r\n\r\n*ДМД-ЧЛБ-ДМД \xa0 У6-610/609*\xa0 тип ВС А320\r\n\r\nВВ из ДМД в 23:30. ВВ из ЧЛБ 06:40 LT\r\n\r\n\r\n', | ||
html='<html>\r\n <head>\r\n\r\n <meta http-equiv="content-type" content="text/html; charset=utf-8">\r\n </head>\r\n <body text="#000000" bgcolor="#FFFFFF">\r\n <p>SCR<br>\r\n </p>\r\n <div class="moz-forward-container">/<br>\r\n S19<br>\r\n 07FEB<br>\r\n wat<br></div>\r\n <pre class="moz-signature" cols="72">-- \r\nотдел расписания\r\nтел. (343) 072-00-00 (вн.18-59)\r\ne-mail: <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a></pre>\r\n </body>\r\n</html>\r\n<html>\r\n <head>\r\n\r\n <meta http-equiv="content-type" content="text/html; charset=utf-8">\r\n </head>\r\n <body smarttemplateinserted="true">\r\n <div id="smartTemplate4-template">Добрый\xa0день,\xa0уважаемые\xa0коллеги!\r\n <p>\xa0</p>\r\n </div>\r\n <br>\r\n <div class="moz-forward-container"><br>\r\n <br>\r\n -------- Перенаправленное сообщение --------\r\n <table class="moz-email-headers-table" cellspacing="0"\r\n cellpadding="0" border="0">\r\n <tbody>\r\n <tr>\r\n <th valign="BASELINE" nowrap="nowrap" align="RIGHT">Тема: </th>\r\n <td>Ввод рейсов ТЮМ, ЧЛБ, ОМС на Лето 2019</td>\r\n </tr>\r\n <tr>\r\n <th valign="BASELINE" nowrap="nowrap" align="RIGHT">Дата: </th>\r\n <td>Fri, 7 Dec 2018 08:23:21 +0500</td>\r\n </tr>\r\n <tr>\r\n <th valign="BASELINE" nowrap="nowrap" align="RIGHT">От: </th>\r\n <td>1 <a class="moz-txt-link-rfc2396E" href="mailto:[email protected]"><[email protected]></a></td>\r\n </tr>\r\n <tr>\r\n <th valign="BASELINE" nowrap="nowrap" align="RIGHT">Кому: </th>\r\n <td>2 <a class="moz-txt-link-rfc2396E" href="mailto:[email protected]"><[email protected]></a></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n <br>\r\n <br>\r\n <meta http-equiv="content-type" content="text/html; charset=utf-8">\r\n <div id="smartTemplate4-template">Добрый\xa0день,\xa0уважаемые\xa0коллеги!\r\n <p>Прошу ввести рейс на период летней навигации <br>\r\n </p>\r\n <p>\xa0 тип ВС А320<br>\r\n </p>\r\n <p>ВВ из ДМД 23:00 LT. ВВ из ТЮМ 06:45 LT</p>\r\n <p>исключение период с 25/05/19 по 13/10/19 <br>\r\n </p>\r\n <p>ВВ из ДМД в 00:50 LT<br>\r\n </p>\r\n <p>ВВ из ТЮМ остается без изменения <br>\r\n </p>\r\n <p>----------------------------------------</p>\r\n <p>\xa0 тип ВС А321</p>\r\n <p>ВВ из ДМД в 23:15. ВВ из ОМС 06:30 LT <br>\r\n </p>\r\n <p>----------------------------------------</p>\r\n <p>\xa0 тип ВС А320</p>\r\n <p>ВВ из ДМД в 23:30. ВВ из ЧЛБ 06:40 LT </p>\r\n </div>\r\n <br>\r\n </div>\r\n </body>\r\n</html>\r\n', | ||
headers={'return-path': ('[email protected]',), '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)'), 'x-virus-scanned': ('amavisd-new at m101.com.ru',), 'subject': ('S19 IZM A7-342',), 'references': ('<[email protected]>',), 'to': ('=?UTF-8?B?0KLQrtCc0JXQndCs?= <[email protected]>',), 'from': ('=?utf-8?B?0JrQsNGD0LrQuNC9INCS0LvQsNC00LjQvNC40YA=?= <[email protected]>',), 'cc': ('[email protected], [email protected]',), 'bcc': ('=?utf-8?b?0JrQvtC80LDQvdC00LAg0K/QvdC00LXQutGBLtCf0L7Rh9GC0Ys=?=\r\n\t<[email protected]>',), 'x-forwarded-message-id': ('<[email protected]>',), 'message-id': ('<[email protected]>',), 'date': ('Thu, 7 Feb 2019 13:18:20 +0500',), 'user-agent': ('Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101\r\n Thunderbird/60.5.0',), 'mime-version': ('1.0',), 'in-reply-to': ('<[email protected]>',), 'content-type': ('multipart/mixed;\r\n boundary="------------FFFBFD561B1FF33B4E5E7050"',), 'content-language': ('ru',)}, | ||
attachments=[ | ||
dict( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,9 @@ | |
cc=(), | ||
bcc=(), | ||
reply_to=(), | ||
date=datetime.datetime(2005, 6, 6, 22, 21, 22, tzinfo=datetime.timezone(datetime.timedelta(0, 7200))), | ||
date=datetime.datetime(2005, 6, 6, 22, 21, 22, tzinfo=datetime.timezone(datetime.timedelta(seconds=7200))), | ||
date_str='Mon, 6 Jun 2005 22:21:22 +0200', | ||
text='This is the first part.\r\n', | ||
text='This is the first part.\r\nJust attaching another PDF, here, to see what the message looks like,\r\nand to see if I can figure out what is going wrong here.\r\n', | ||
html='', | ||
headers={'mime-version': ('1.0 (Apple Message framework v730)',), 'content-type': ('multipart/mixed; boundary=Apple-Mail-13-196941151',), 'message-id': ('<[email protected]>',), 'from': ('[email protected]',), 'subject': ('testing',), 'date': ('Mon, 6 Jun 2005 22:21:22 +0200',), 'to': ('[email protected]',)}, | ||
attachments=[ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
cc=(), | ||
bcc=(), | ||
reply_to=('[email protected]',), | ||
date=datetime.datetime(2005, 5, 10, 11, 26, 39, tzinfo=datetime.timezone(datetime.timedelta(-1, 64800))), | ||
date=datetime.datetime(2005, 5, 10, 11, 26, 39, tzinfo=datetime.timezone(datetime.timedelta(days=-1, seconds=64800))), | ||
date_str='Tue, 10 May 2005 11:26:39 -0600', | ||
text='Just attaching another PDF, here, to see what the message looks like,\r\nand to see if I can figure out what is going wrong here.\r\n', | ||
html='', | ||
|
Oops, something went wrong.