Skip to content

A platform for community discussion. Free, open, simple.

FIX: extracting mail content from exchange emails

Régis Hanol20ba54d53630
diff --git a/lib/email/receiver.rb b/lib/email/receiver.rb
index 68a75c621f3..abf42f61e89 100644
--- a/lib/email/receiver.rb
+++ b/lib/email/receiver.rb
@@ -321,7 +321,7 @@ module Email
# Exchange is using the 'messageReplySection' class for forwarded emails
# And 'messageBodySection' for the actual email
elided = doc.css("div[name='messageReplySection']").remove
- to_markdown(doc.css("div[name='messageBodySection'").to_html, elided.to_html)
+ to_markdown(doc.css("div[name='messageReplySection']").to_html, elided.to_html)
end
def extract_from_apple_mail(html)