code: plan9front

ref: d2049c206c14fad18cd307d1e6fc2b319c95f581
dir: /acme/bin/Isspam/

View raw version
#!/bin/rc

if(! ~ $#* 0){
	echo usage: Isspam >[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/isspam