diff --git a/app/controllers/channels_email_controller.rb b/app/controllers/channels_email_controller.rb index 81d5b200a..7ee19b2e2 100644 --- a/app/controllers/channels_email_controller.rb +++ b/app/controllers/channels_email_controller.rb @@ -253,7 +253,7 @@ class ChannelsEmailController < ApplicationController next if channel.options[:inbound][:adapter] != result[:setting][:inbound][:adapter] next if channel.options[:inbound][:options][:host] != result[:setting][:inbound][:options][:host] next if channel.options[:inbound][:options][:user] != result[:setting][:inbound][:options][:user] - next if channel.options[:inbound][:options][:folder] != result[:setting][:inbound][:options][:folder] + next if channel.options[:inbound][:options][:folder].to_s != result[:setting][:inbound][:options][:folder].to_s next if channel.id.to_s == channel_id.to_s render json: { result: 'duplicate',