From add281c738c6de1565532f7820874be235b9632d Mon Sep 17 00:00:00 2001 From: Patrick Gansterer Date: Fri, 18 Aug 2017 00:38:26 +0200 Subject: [PATCH] Remove email from subject of feedback mail The mail address of the user sending the feedback is now set in the Reply-To header of the mail already. --- app/mailers/mailer.rb | 2 +- config/locales/de.yml | 2 +- config/locales/en.yml | 2 +- config/locales/fr.yml | 2 +- config/locales/nl.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/mailers/mailer.rb b/app/mailers/mailer.rb index c381163e..ec1c9ae2 100644 --- a/app/mailers/mailer.rb +++ b/app/mailers/mailer.rb @@ -64,7 +64,7 @@ class Mailer < ActionMailer::Base mail to: FoodsoftConfig[:notification][:error_recipients], from: user, - subject: I18n.t('mailer.feedback.subject', email: user.email) + subject: I18n.t('mailer.feedback.subject') end def not_enough_users_assigned(task, user) diff --git a/config/locales/de.yml b/config/locales/de.yml index 13693b11..e2da7800 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -1169,7 +1169,7 @@ de: dateformat: "%d. %b" feedback: header: "%{user} schrieb am %{date}:" - subject: Feedback von %{email} + subject: Feedback zur Foodsoft invite: subject: Einladung in die Foodcoop text: | diff --git a/config/locales/en.yml b/config/locales/en.yml index bf870afc..2b8dce50 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1171,7 +1171,7 @@ en: dateformat: "%d %b" feedback: header: "%{user} wrote at %{date}:" - subject: Feedback from %{email} + subject: Feedback for Foodsoft invite: subject: Invitation to the Foodcoop text: | diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 1260b585..4e6c1001 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -1188,7 +1188,7 @@ fr: dateformat: "%d %b" feedback: header: 'Le %{date}, %{user} a écrit:' - subject: Retour de %{email} + subject: Feedback pour Foodsoft invite: subject: Invitation à participer à une Bouffecoop text: |- diff --git a/config/locales/nl.yml b/config/locales/nl.yml index 5bfcd2ff..f61c643e 100644 --- a/config/locales/nl.yml +++ b/config/locales/nl.yml @@ -1171,7 +1171,7 @@ nl: dateformat: "%d %b" feedback: header: "%{user} schreef op %{date}:" - subject: Feedback van %{email} + subject: Feedback voor Foodsoft invite: subject: Uitnodiging voor de foodcoop text: |-