mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-07 16:47:13 +00:00
catch inline attachments
This commit is contained in:
1 parent
e96c7448bc
commit
f1427a9245
1 file changed
+1
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user