From b3a6884cf11d36d452bc65a843500e37b35ea880 Mon Sep 17 00:00:00 2001 From: Patrick Gansterer Date: Mon, 14 Aug 2017 09:55:09 +0200 Subject: [PATCH] Remove FoodsoftConfig[:name] from received mails --- plugins/messages/lib/tasks/foodsoft.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/messages/lib/tasks/foodsoft.rake b/plugins/messages/lib/tasks/foodsoft.rake index c753ab6c..4f1a291a 100644 --- a/plugins/messages/lib/tasks/foodsoft.rake +++ b/plugins/messages/lib/tasks/foodsoft.rake @@ -66,7 +66,7 @@ def hande_mail(recipient, received_email) group: original_message.group, private: original_message.private, received_email: received_email, - subject: mail.subject + subject: mail.subject.gsub("[#{FoodsoftConfig[:name]}] ", "") if original_message.reply_to message.reply_to_message = original_message.reply_to_message else