mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-19 10:19:27 -05:00
catch inline attachments
This commit is contained in:
parent
e96c7448bc
commit
f1427a9245
@ -76,7 +76,7 @@ class Message(Loggable):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
dispositions = content_disposition.strip().split(";")
|
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
|
continue
|
||||||
|
|
||||||
file_data = part.get_payload()
|
file_data = part.get_payload()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user