FEATURE: new 'trim_incoming_emails' site setting (PR #12874)

This setting allows admin to de/activate automatic trimming of incoming email. There are instances where it does wonders in trimming all the garbage content and other instances where it’s so bad that it trims the most important part of the email.

FIX: don’t remove hidden content using the style attribute when converting HTML to Markdown. The regexp used was doing more harm than good. It was way too broad.

FIX: properly elide signatures from emails sent with Front App. This is fairly safe as Front App nicely identifies signatures in the HTML part.

GitHub