From eefb42334f6d928081d5d5edbb92e75813666dbb Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 26 Jun 2010 16:03:47 +0100 Subject: [PATCH] Use the message title as the subject of notification mails Make message notification mails use the message title as the subject so that it is properly perserved when replying by email. Closes #3051. --- app/models/notifier.rb | 2 +- config/locales/en.yml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/notifier.rb b/app/models/notifier.rb index 41734bb5b..de0ad21d6 100644 --- a/app/models/notifier.rb +++ b/app/models/notifier.rb @@ -48,7 +48,7 @@ class Notifier < ActionMailer::Base def message_notification(message) common_headers message.recipient from_header message.sender.display_name, "m", message.id, message.digest - subject I18n.t('notifier.message_notification.subject', :user => message.sender.display_name, :locale => locale) + subject message.title body :to_user => message.recipient.display_name, :from_user => message.sender.display_name, :body => message.body, diff --git a/config/locales/en.yml b/config/locales/en.yml index 12fa15627..f79a3d9e5 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1062,7 +1062,6 @@ en: header: "{{from_user}} has commented on your recent OpenStreetMap diary entry with the subject {{subject}}:" footer: "You can also read the comment at {{readurl}} and you can comment at {{commenturl}} or reply at {{replyurl}}" message_notification: - subject: "[OpenStreetMap] {{user}} sent you a new message" hi: "Hi {{to_user}}," header: "{{from_user}} has sent you a message through OpenStreetMap with the subject {{subject}}:" footer1: "You can also read the message at {{readurl}}" -- 2.39.5