From a82ac7877c4b437c3a3636fcc9694a1d4b2dfc18 Mon Sep 17 00:00:00 2001 From: John Denker Date: Mon, 30 Jul 2012 21:32:30 -0700 Subject: repair usage message --- tools/mail-scan.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'tools') diff --git a/tools/mail-scan.c b/tools/mail-scan.c index b0c4137..3c53b2b 100644 --- a/tools/mail-scan.c +++ b/tools/mail-scan.c @@ -37,19 +37,17 @@ using namespace std; void usage(const int sts){ (sts ? cerr : cout) << -"Usage: skrewt [options]\n" +"Usage: mail-scan [options] filename [more filenames]\n" "\n" -" Scrutinizes email. Reads stdin, copies it to stdout.\n" -" Exit result 0 means good, 1 means rejection (spam).\n" -" Writes reason for rejection to stderr.\n" -"\n" -" Typically used as a filter in a pipeline, along with spamc -E\n" " Options\n" " -help print this msg (and exit immediately).\n" -" -maxsize ii msg size in bytes; anything bigger will be rejected.\n" " -vert invert: print only if *no* match.\n" " -l print filename only, not matching text.\n" " -group print a blank line after every match.\n" +" -multi print multi-line records on multiple lines\n" +" (as opposed to smashing them all onto one long line\n" +" -addr assume field contains somebody ; print just foo@bar.com\n" +"\n" "\n" " Messages containing the string '-please-bounce-this-' will be rejected.\n" " Messages with no date will be rejected.\n" @@ -300,10 +298,6 @@ int main(int _argc, const char** _argv){ didprint++; } else /* addr_mode */{ boost::smatch matches; -//// boost::match_flag_type flg; -//// boost::regex_search(header, matches, addr_filter); -//// boost::regex_search(header.begin(), header.end(), matches, addr_filter, flg); -/// boost::regex_search(header, matches, addr_filter); if (boost::regex_search(header, matches, addr_filter)){ cout << string(matches[1].first, matches[1].second) << endl; } else { -- cgit v1.2.3