Capture implicit (i.e. 'inline') attachments as well
This commit is contained in:
parent
ac0a6264d0
commit
4e94aef65a
|
@ -74,7 +74,7 @@ class Command(BaseCommand):
|
||||||
|
|
||||||
attachments = []
|
attachments = []
|
||||||
for part in msg.walk():
|
for part in msg.walk():
|
||||||
if part.is_attachment():
|
if part.get_content_disposition() != None:
|
||||||
attachments.append(
|
attachments.append(
|
||||||
(part.get_filename(), ContentFile(part.get_content()))
|
(part.get_filename(), ContentFile(part.get_content()))
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue