From db3ee07a5530b69624d5a8d517c9301cc835edda Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Thu, 20 Jun 2019 06:57:45 +0000 Subject: Reverts r18245 (#31582, #31365). Issue subjets are truncated in some cases when they are created via email. git-svn-id: http://svn.redmine.org/redmine/trunk@18269 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- config/initializers/10-patches.rb | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'config/initializers') diff --git a/config/initializers/10-patches.rb b/config/initializers/10-patches.rb index 06edc943a..e0559903b 100644 --- a/config/initializers/10-patches.rb +++ b/config/initializers/10-patches.rb @@ -107,20 +107,6 @@ end require 'mail' -module Mail - class SubjectField - # Fixed that the issue subject may be broken if the subject field in the - # receiving email is split into multiple lines - def initialize(value = nil, charset = 'utf-8') - if mime_encode = /^(=\?\S+\?\S\?)/.match(value).to_a[1] - value.gsub!(/\?=\s+#{Regexp.escape(mime_encode)}/, '') - end - self.charset = charset - super(CAPITALIZED_FIELD, value, charset) - end - end -end - module DeliveryMethods class TmpFile def initialize(*args); end -- cgit v1.2.3