diff --git a/lib/email/receiver.rb b/lib/email/receiver.rb
index b29baf9a555..712c0e25738 100644
--- a/lib/email/receiver.rb
+++ b/lib/email/receiver.rb
@@ -261,8 +261,13 @@ module Email
end
markdown, elided_markdown = if html.present?
- if html[%{
}]
- html, elided_html = extract_gmail_quote(html)
+ if html[/
+ elided << fwd.next_element
+ # also elide any signatures
+ elided << doc.css("#Signature").remove
+ # remove the leading
+ [fwd.previous_element, fwd].each(&:remove)
[doc.to_html, elided.to_html]
end