mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
catch inline attachments
This commit is contained in:
parent
e96c7448bc
commit
f1427a9245
@ -76,7 +76,7 @@ class Message(Loggable):
|
||||
continue
|
||||
|
||||
dispositions = content_disposition.strip().split(";")
|
||||
if not dispositions[0].lower() == "attachment":
|
||||
if (not dispositions[0].lower() == "attachment") and ("filename" not in dispositions[1].lower()):
|
||||
continue
|
||||
|
||||
file_data = part.get_payload()
|
||||
|
Loading…
x
Reference in New Issue
Block a user