diff --git a/src/documents/mail.py b/src/documents/mail.py index 3d961f4d5..7c3b20055 100644 --- a/src/documents/mail.py +++ b/src/documents/mail.py @@ -44,6 +44,8 @@ class Message(Renderable): https://www.ianlewis.org/en/parsing-email-attachments-python """ + self.verbosity = verbosity + self.subject = None self.time = None self.attachment = None diff --git a/src/documents/tests/test_mail.py b/src/documents/tests/test_mail.py index 366dc97b9..9a9480db4 100644 --- a/src/documents/tests/test_mail.py +++ b/src/documents/tests/test_mail.py @@ -27,7 +27,7 @@ class TestMessage(TestCase): with open(self.sample, "rb") as f: - message = Message(f.read()) + message = Message(f.read(), verbosity=0) self.assertTrue(message) self.assertEqual(message.subject, "Test 0")