Private
Public Access
1
0

tests if message encoded

This commit is contained in:
Sander Roosendaal
2017-11-10 11:53:08 +01:00
parent d19ddec79e
commit 4f34668c27

View File

@@ -121,7 +121,8 @@ class Command(BaseCommand):
extension = attachment.document.name[-3:].lower()
try:
message = Message.objects.get(id=attachment.message_id)
if message.text:
if mm.encoded:
# if message.text:
body = "\n".join(message.text.splitlines())
else:
body = message.get_body()