From 832f0a9c4d0a48ddb2c4f6ff00a50efc21c7dbc4 Mon Sep 17 00:00:00 2001 From: Gerhard Schlager Date: Tue, 6 Mar 2018 11:34:47 +0100 Subject: [PATCH] FIX: Typo prevented extraction of email signatures --- lib/email/receiver.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/email/receiver.rb b/lib/email/receiver.rb index efc21cddd59..2df138a9869 100644 --- a/lib/email/receiver.rb +++ b/lib/email/receiver.rb @@ -328,7 +328,7 @@ module Email doc = Nokogiri::HTML.fragment(html) # AppleMail is the worst. It adds 'AppleMailSignature' ids (!) to several div/p with no deterministic rules # Our best guess is to elide whatever comes after that. - elided = doc.css("#AppleMailSignature:last-of_type ~ *").remove + elided = doc.css("#AppleMailSignature:last-of-type ~ *").remove to_markdown(doc.to_html, elided.to_html) end