From 250bf2abcf0a732ed379f190e75fa35ae50be32d Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Mon, 16 Sep 2019 14:20:59 +0200 Subject: [PATCH] Fixes #2726: System mail notification subjects ending with =0A. --- lib/notification_factory/mailer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/notification_factory/mailer.rb b/lib/notification_factory/mailer.rb index 928ab88d0..e3037a221 100644 --- a/lib/notification_factory/mailer.rb +++ b/lib/notification_factory/mailer.rb @@ -299,8 +299,8 @@ returns escape: false ).render - # strip off the extra newline at the end for the subjects of plaintext templates - message_subject.chomp! if data[:format] == 'txt' + # strip off the extra newline at the end of the subject to avoid =0A suffixes (see #2726) + message_subject.chomp! message_body = NotificationFactory::Renderer.new( objects: data[:objects],