tests if message encoded
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user