-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filter "real" attachments by being referenced (#9472)
* Filter "real" attachments by being referenced This changes the way in which attachments are determined to be shown as such ("standalone"), or not ("inline"). In theory this should be determined by their Content-Disposition, but in reality this often doesn't work. Now we check if the Content-ID or Content-Location of the attachment is actually being used in other parts of the message. If not, the attachment is considered to be "standalone". * Consider all mime-parts to check if message is empty Previously only `parts` and `body` were checked, so mime-parts that were classified into `attachments` and `inline_parts` didn't count – thus messages that contained only those parts were shown blank.
- Loading branch information
Showing
2 changed files
with
62 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters