summaryrefslogtreecommitdiff
path: root/lib/gitlab/email
diff options
context:
space:
mode:
authorhttp://jneen.net/ <jneen@jneen.net>2016-11-22 15:25:09 +0900
committerhttp://jneen.net/ <jneen@jneen.net>2016-12-21 09:51:41 -0800
commit602c3198626ae2a23f8f2962963c18f3b3bf1664 (patch)
tree8b1a5e1d3ad3fb58ac24244c436b56360d6aa1b2 /lib/gitlab/email
parent017579fe149e976fb0b2b21b234ea923913cadb2 (diff)
downloadgitlab-ce-602c3198626ae2a23f8f2962963c18f3b3bf1664.tar.gz
allow empty-quotes
Diffstat (limited to 'lib/gitlab/email')
-rw-r--r--lib/gitlab/email/reply_parser.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/gitlab/email/reply_parser.rb b/lib/gitlab/email/reply_parser.rb
index e714923c4d8..5957cbbad7e 100644
--- a/lib/gitlab/email/reply_parser.rb
+++ b/lib/gitlab/email/reply_parser.rb
@@ -18,10 +18,6 @@ module Gitlab
# [jneen] not using /\s+$/ here because that deletes empty lines
body = body.gsub(/[ \t]$/, '')
- # TODO [jneen]: do we want to allow empty-quoting? (replies only containing a blockquote)
- # EmailReplyTrimmer allows this as a special case, so we detect it manually here.
- return "" if body.lines.all? { |l| l.strip.empty? || l.start_with?('>') }
-
body.force_encoding(encoding).encode("UTF-8")
end