From 77e1cbc7a8dd5a9a79d67f7f9f54cfb361607240 Mon Sep 17 00:00:00 2001 From: John Denker Date: Sun, 24 Feb 2013 17:09:27 -0800 Subject: add -note nnnn" feature --- tools/skrewt.c | 2 ++ tools/testall-skrewt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/skrewt.c b/tools/skrewt.c index f7dd83b..cd2144f 100644 --- a/tools/skrewt.c +++ b/tools/skrewt.c @@ -29,6 +29,7 @@ void usage(const int sts){ " -help print this msg (and exit immediately).\n" " -maxsize ii msg size in bytes; anything bigger will be rejected.\n" " -strict exit early if errors have been detected.\n" +" -note nnnn annotate logfile entries.\n" "\n" " Messages containing the string '-please-bounce-this-' will be rejected.\n" " Messages with no date will be rejected.\n" @@ -117,6 +118,7 @@ int main(int _argc, const char** _argv){ catch (int) { exit(ex_usage); } + progid += mysk.note; int rslt = mysk.headers(cin); if (rslt) return rslt; diff --git a/tools/testall-skrewt b/tools/testall-skrewt index 52e62cb..2b45477 100755 --- a/tools/testall-skrewt +++ b/tools/testall-skrewt @@ -4,6 +4,6 @@ i=0 for file in /home/jsd/Maildir/cur/* ; do ((ii++)) echo "**** $ii $file" - <$file ./skrewt -err >/tmp/testall.eml && diff $file /tmp/testall.eml || exit 1 + <$file ./skrewt -strict -note $(basename $file) >/tmp/testall.eml && diff $file /tmp/testall.eml || exit 1 done echo OK -- cgit v1.2.3