summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2013-02-25 01:09:27 (GMT)
committerJohn Denker <jsd@av8n.com>2013-02-25 01:09:27 (GMT)
commit77e1cbc7a8dd5a9a79d67f7f9f54cfb361607240 (patch)
treeb44e8d9c3f191c149e6759b35d3a547a2474d42b
parentfcf49eff655296c9f6c19bd262e343e69138ce67 (diff)
add -note nnnn" feature
-rw-r--r--tools/skrewt.c2
-rwxr-xr-xtools/testall-skrewt2
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