X-Git-Url: https://code.th-h.de/?p=mail%2Fcheckmail.git;a=blobdiff_plain;f=checkmail.pl;h=4ea8398111ce62111b62a828e7d7b4610cf1fa5b;hp=537d8f0241850c17ecea3897fdaade09d8afe74b;hb=ba787c2d08ed975d079c2cdcff3ad52ee4289f66;hpb=5327436fa46c41f8cfdb1a97c4e97cfd91dc26d6 diff --git a/checkmail.pl b/checkmail.pl index 537d8f0..4ea8398 100644 --- a/checkmail.pl +++ b/checkmail.pl @@ -1,15 +1,15 @@ -#! /usr/bin/perl -W +#! /usr/bin/perl -w # -# checkmail Version 0.5 by Thomas Hochstein +# checkmail Version 0.6.1 by Thomas Hochstein # # This script tries to verify the deliverability of (a) mail address(es). # -# Copyright (c) 2002-2010 Thomas Hochstein +# Copyright (c) 2002-2011 Thomas Hochstein # # It can be redistributed and/or modified under the same terms under # which Perl itself is published. -our $VERSION = "0.5"; +our $VERSION = "0.6.1"; ################################# Configuration ################################ # Please fill in a working configuration! @@ -224,10 +224,13 @@ sub checksmtp { # 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; - print " > Address verificaton impossible. You'll have to send a test mail ...\n" if !($options{'q'}); + print " > Address verification impossible. You'll have to send a test mail ...\n" if !($options{'q'}); } } # if -r is not set or status was not set to 3: valid address