From 9a783cb0791327367d85b63bf3e0e4e1aa215163 Mon Sep 17 00:00:00 2001 From: John Denker Date: Sat, 24 Nov 2012 20:44:01 -0800 Subject: reduce "junk" and other noise in log file --- tools/libskrewt.c | 10 ++++++---- tools/sepofra.c | 6 +++--- 2 files changed, 9 insertions(+), 7 deletions(-) (limited to 'tools') diff --git a/tools/libskrewt.c b/tools/libskrewt.c index d93a9e1..f51a8bc 100644 --- a/tools/libskrewt.c +++ b/tools/libskrewt.c @@ -217,10 +217,12 @@ int skrewt::dump_bigbuf(std::ostream& xout){ void check_spf(name_tester& fqdn, const string ip) { sepofra my_spf; try { - my_spf.check(ip, - fqdn.name, - "junk", - "morejunk", 0/* verbosity */); + my_spf.check(ip, /* IP */ + fqdn.name, /* HELO */ + "", /* mail_from */ + "", /* rcpt_to */ + 0 /* verbosity */ + ); cerr << progid << " " << my_spf.explain() << endl; // keep a copy of the result: fqdn.spf = neutral; diff --git a/tools/sepofra.c b/tools/sepofra.c index 41cc784..25b73b7 100644 --- a/tools/sepofra.c +++ b/tools/sepofra.c @@ -156,9 +156,9 @@ string sepofra::explain() const { build << "}"; } /* ( */ build << ")"; - build << " client-ip=" << ip << ";"; - build << " envelope-from=" << mailfrom << ";"; - build << " helo=" << helo; + if (ip != "") build << " client-ip=" << ip << ";"; + if (mailfrom != "") build << " envelope-from=" << mailfrom << ";"; + if (helo != "") build << " helo=" << helo; return build.str(); } -- cgit v1.2.3