mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	catch inline attachments
This commit is contained in:
		| @@ -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() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Florian Harr
					Florian Harr