diff --git a/lib/email/receiver.rb b/lib/email/receiver.rb index b2b8e5d03..8749745dd 100644 --- a/lib/email/receiver.rb +++ b/lib/email/receiver.rb @@ -90,9 +90,7 @@ module Email lines = @body.lines.to_a range_end = 0 - email_year = - lines.each_with_index do |l, idx| - + email_year = lines.each_with_index do |l, idx| break if l =~ /\A\s*\-{3,80}\s*\z/ || l =~ Regexp.new("\\A\\s*" + I18n.t('user_notifications.previous_discussion') + "\\s*\\Z") || # This one might be controversial but so many reply lines have years, times and end with a colon.