From eb68ea4103ff126efd476439b785328de88c9361 Mon Sep 17 00:00:00 2001 From: Shugo Maeda Date: Thu, 8 Dec 2022 13:19:55 +0900 Subject: [PATCH] Force utf-8 to avoid extra LFs in quoted printable --- .../redmine_ext/mailer.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/redmine_bugs_ruby_lang/lib/redmine_ruby_lang_mailing_list_customization/redmine_ext/mailer.rb b/plugins/redmine_bugs_ruby_lang/lib/redmine_ruby_lang_mailing_list_customization/redmine_ext/mailer.rb index cf81fdda59..2d405b8b33 100644 --- a/plugins/redmine_bugs_ruby_lang/lib/redmine_ruby_lang_mailing_list_customization/redmine_ext/mailer.rb +++ b/plugins/redmine_bugs_ruby_lang/lib/redmine_ruby_lang_mailing_list_customization/redmine_ext/mailer.rb @@ -19,6 +19,7 @@ def issue_edit(user, journal) def mail(headers={}, &block) headers[:bcc] = (headers[:bcc] || []).concat((headers[:cc] || [])) headers[:cc] = [] + headers[:charset] = "utf-8" locale = headers[:to].to_s.include?('ruby-dev') ? :ja : :en I18n.with_locale(locale) { super(headers) } end