From 739430c01e5d24d582e5feb87923ae59f0cca589 Mon Sep 17 00:00:00 2001 From: Gerhard Schlager Date: Thu, 26 Mar 2020 16:40:34 +0100 Subject: [PATCH] FIX: mbox import failed if no tags were configured --- script/import_scripts/mbox/support/settings.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/import_scripts/mbox/support/settings.rb b/script/import_scripts/mbox/support/settings.rb index 9311dff5e78..e1fd15b8697 100644 --- a/script/import_scripts/mbox/support/settings.rb +++ b/script/import_scripts/mbox/support/settings.rb @@ -40,8 +40,8 @@ module ImportScripts::Mbox @automatically_remove_list_name_prefix = yaml['automatically_remove_list_name_prefix'] @show_trimmed_content = yaml['show_trimmed_content'] + @tags = [] if yaml['tags'].present? - @tags = [] yaml['tags'].each do |tag_name, value| prefixes = Regexp.union(value).source @tags << {