From 2d93b435bada9251a0cfb62e758f39bb33e836e6 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 21 Apr 2016 20:49:30 +0200 Subject: [PATCH] Reset filters to empty for postmaster filter. --- app/models/channel/email_parser.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/channel/email_parser.rb b/app/models/channel/email_parser.rb index 797b06cb7..3ed371242 100644 --- a/app/models/channel/email_parser.rb +++ b/app/models/channel/email_parser.rb @@ -490,6 +490,7 @@ retrns Observer::Transaction.commit # run postmaster post filter + filters = {} Setting.where(area: 'Postmaster::PostFilter').order(:name).each {|setting| filters[setting.name] = Kernel.const_get(Setting.get(setting.name)) }