From ee93a6480215a104be42aca282dcc658ea5ce510 Mon Sep 17 00:00:00 2001 From: John Denker Date: Sun, 2 Dec 2012 13:58:56 -0700 Subject: fix some bit-rot; rename -error-exit to -strict --- tools/libskrewt.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'tools/libskrewt.c') diff --git a/tools/libskrewt.c b/tools/libskrewt.c index 5e06dea..5461fdd 100644 --- a/tools/libskrewt.c +++ b/tools/libskrewt.c @@ -2,6 +2,9 @@ #include "utils.h" #include #include +#include +#include +#include using namespace std; @@ -327,7 +330,7 @@ void check_map2ip(name_tester& fqdn, const string ipstr) { void check_name_ip(name_tester& fqdn, const string ip) { if (ip == "") { - cerr << "check_nane_ip: should never happen: email with no IP?" < sitch){ // constructor skrewt::skrewt() - : spf_result(SPF_RESULT_INVALID), + : proximta_rDNS_flagged(0), spf_result(SPF_RESULT_INVALID), boundary("x-xx-x"), msgsize(0), saw_blank_line(0), recno(0), - maxsize(1000*1000), error_exit(0), mid_required(0), + maxsize(1000*1000), strictness(0), note(""), mid_required(0), headerbuf(0), bigbuf(0), lookahead(1, "") { @@ -632,8 +635,8 @@ int skrewt::body(std::istream& xin, std::ostream& xout){ if (verbosity) cerr << "textlines: " << textlines << endl; if (!textlines) { - cerr << progid << " rejection: no text: " << error_exit << endl; - maybe_exeunt(ex_spam, error_exit); + cerr << progid << " rejection: no text: " << strictness << endl; + maybe_exeunt(ex_spam, strictness); } cerr << progid << " normal completion" << endl; return(ex_good); -- cgit v1.2.3