This fixes a bug where attachments were loaded into memory to check for HTML content. This could result in fatal PHP errors for large attachments. Thanks to @orange7 for reporting this issue.