Closed eprislac closed 4 years ago
Hi, Eddie. Thanks for your report. It happened because your black list array includes invalid domain(s). Also it's included not uniq items. At this time Truemail not includes pointer for invalid domains that passed during configuration instance config. Your black list: blacklist_domain_list.txt
require 'truemail'
File.read('blacklist_domain_list.txt').split(',').uniq.reject { |i| Truemail::RegexConstant::REGEX_DOMAIN_PATTERN.match?(i) }
# => ["housefancom"]
Have a nice day, @eprislac!
New Issue Checklist
Issue Description
Cannot use blacklist feature. I have an existing email blacklist in a lib class which I include via require_relative. Getting the blacklist into the config when Rails starts is not the issue, the issue is that Truemail rejects the blacklist array as invalid. There are over 3k indices in the array, I'm wondering if I might be hitting an upper-limit.
Complete output when running truemail, run from
config/initializers/truemail.rb
file