plan9fox/acme/bin/Unspam
2011-04-14 17:27:24 +00:00

13 lines
235 B
Bash
Executable file

#!/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