tel2 has asked for the wisdom of the Perl Monks concerning the following question:
I've been using Mail::CheckUser for years, but today I noticed some inconsistent results. Here are 2 examples (same 1 liner with different email address):
$ echo "a@b.com" | perl -MMail::CheckUser=check_email,last_check -ne 'BEGIN{$Mail::CheckUser::Skip_SMTP_Checks = 1};chomp;for $i (0..9){print "$_ -> ";if (check_email($_)){print "OK\n"}else{print last_check()->{reason}."\n"}}'
a@b.com -> DNS failure: NXDOMAIN
a@b.com -> DNS failure: NXDOMAIN
a@b.com -> OK
a@b.com -> OK
a@b.com -> DNS failure: NXDOMAIN
a@b.com -> OK
a@b.com -> DNS failure: NXDOMAIN
a@b.com -> DNS failure: NXDOMAIN
a@b.com -> OK
a@b.com -> DNS failure: NXDOMAIN
$ echo "a@abczz123ffz.com" | perl -MMail::CheckUser=check_email,last_check -ne 'BEGIN{$Mail::CheckUser::Skip_SMTP_Checks = 1};chomp;for $i (0..9){print "$_ -> ";if (check_email($_)){print "OK\n"}else{print last_check()->{reason}."\n"}}'
a@abczz123ffz.com -> OK
a@abczz123ffz.com -> DNS failure: NXDOMAIN
a@abczz123ffz.com -> DNS failure: NXDOMAIN
a@abczz123ffz.com -> OK
a@abczz123ffz.com -> DNS failure: NXDOMAIN
a@abczz123ffz.com -> DNS failure: NXDOMAIN
a@abczz123ffz.com -> OK
a@abczz123ffz.com -> OK
a@abczz123ffz.com -> OK
a@abczz123ffz.com -> DNS failure: NXDOMAIN
$ perl -MMail::CheckUser -e 'print "$Mail::CheckUser::VERSION\n"'
1.21
Questions:I'm running Perl v5.10.1 on Linux.
Thanks.
Tel2
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mail::CheckUser inconsistent results
by Anonymous Monk on Aug 26, 2015 at 07:23 UTC | |
by tel2 (Pilgrim) on Aug 26, 2015 at 07:55 UTC | |
by tel2 (Pilgrim) on Aug 27, 2015 at 01:38 UTC | |
by Anonymous Monk on Aug 27, 2015 at 02:11 UTC | |
by tel2 (Pilgrim) on Aug 28, 2015 at 01:51 UTC | |
|
Re: Mail::CheckUser inconsistent results
by Monk::Thomas (Friar) on Aug 26, 2015 at 11:03 UTC | |
by tel2 (Pilgrim) on Aug 28, 2015 at 01:58 UTC | |
by Anonymous Monk on Aug 28, 2015 at 04:29 UTC | |
by tel2 (Pilgrim) on Aug 28, 2015 at 09:11 UTC |