diff --git a/pretasx/ingress/management/commands/processemail.py b/pretasx/ingress/management/commands/processemail.py index 643fa75..49071cc 100644 --- a/pretasx/ingress/management/commands/processemail.py +++ b/pretasx/ingress/management/commands/processemail.py @@ -74,7 +74,7 @@ class Command(BaseCommand): attachments = [] for part in msg.walk(): - if part.is_attachment(): + if part.get_content_disposition() != None: attachments.append( (part.get_filename(), ContentFile(part.get_content())) )