Don't temp-fail on random address check.
authorThomas Hochstein <thh@inter.net>
Mon, 24 Oct 2011 20:27:01 +0000 (22:27 +0200)
committerThomas Hochstein <thh@inter.net>
Mon, 24 Oct 2011 20:27:34 +0000 (22:27 +0200)
If the address has successfully been checked,
but the subsequent check of a random address
is failing with a 4xx response (or a network
problem pp.), the address has been validated
and should be handled that way.

Signed-off-by: Thomas Hochstein <thh@inter.net>
checkmail.pl

index c89ca9f..271da4f 100644 (file)
@@ -224,6 +224,9 @@ sub checksmtp {
         # connection failure?
         if ($success < 0) {
           $status = connection_failed(@message);
         # connection failure?
         if ($success < 0) {
           $status = connection_failed(@message);
+          # reset status - the address has been checked and _is_ valid!
+          $status = 3;
+          print "  > Address verification currently impossible. You'll have to try again or send a test mail ...\n" if !($options{'q'});
         # verification impossible?
         } elsif ($success) {
           $status = 3;
         # verification impossible?
         } elsif ($success) {
           $status = 3;
This page took 0.011835 seconds and 4 git commands to generate.