Defect #31549 » fixed-31549-v2.patch
extra/mail_handler/rdm-mailhandler.rb | ||
---|---|---|
153 | 153 | |
154 | 154 |
headers = { 'User-Agent' => "Redmine mail handler/#{VERSION}" } |
155 | 155 | |
156 |
encoding = email.encoding |
|
157 |
email = email.b.gsub(/\r?\n|\r\n?/, "\r\n") |
|
158 |
email.force_encoding(encoding) |
|
159 | ||
156 | 160 |
data = { 'key' => key, 'email' => email, |
157 | 161 |
'allow_override' => allow_override, |
158 | 162 |
'unknown_user' => unknown_user, |