Private
Public Access
1
0

fixed, tested

This commit is contained in:
Sander Roosendaal
2019-04-06 18:27:17 +02:00
parent 032364486d
commit b1f04581a8
3 changed files with 6 additions and 6 deletions

View File

@@ -213,7 +213,9 @@ class Command(BaseCommand):
testing = False
cntr = 0
for attachment in attachments:
extension = attachment.document.name[-3:].lower()
filename, extension = os.path.splitext(attachment.document.name)
extension = extension.lower()
# extension = attachment.document.name[-3:].lower()
try:
message = Message.objects.get(id=attachment.message_id)
if message.encoded: