Capture implicit (i.e. 'inline') attachments as well

This commit is contained in:
Luca 2022-11-26 17:54:24 +01:00
parent ac0a6264d0
commit 4e94aef65a
1 changed files with 1 additions and 1 deletions

View File

@ -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()))
)