ref: ad7120b2e2f0ed0d226eec1b5ef6fc6b3eebb4ef
dir: /acme/bin/Unspam/
#!/bin/rc if(! ~ $#* 0){ echo usage: Unspam >[1=2] exit usage } if(! ~ `{pwd} /mail/fs/*/[0-9]* || ! test -f raw || ! test -f unixheader){ echo must run in mail directory >[1=2] exit 'bad dir' } cat unixheader raw | upas/unspam