code: plan9front

ref: 5a15acc7f0cbbcddf80e445cf1721cba6de31d4b
dir: /acme/bin/Unspam/

View raw version
#!/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