diff options
-rw-r--r-- | tools/skrewt.c | 2 | ||||
-rwxr-xr-x | tools/testall-skrewt | 2 |
2 files changed, 3 insertions, 1 deletions
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 |