Plan 9 from Bell Labs’s /usr/web/sources/plan9/mail/lib/setup.bayes

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc

cd /mail/box/$user
>>_bounced
>>L.spam
chmod +arw _bounced
>>_prof.mbox
>>_prof.spam
if(! test -s _prof.mbox)
	cp /mail/lib/prof.mbox _prof.mbox
if(! test -s _prof.spam)
	cp /mail/lib/prof.spam _prof.spam
chmod +lrw _prof.mbox _prof.spam
chmod +lrw L.spam
>>spam
chmod +alrw spam
i=0
if(test -f pipeto){
	while(test -f pipeto.$i)
		i=`{echo 1+$i |hoc}
	mv pipeto pipeto.$i
	echo saved pipeto as pipeto.$i
}
cp /mail/lib/pipeto.bayes pipeto
chmod 775 pipeto

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.