setup.bayes 441 B

1234567891011121314151617181920212223
  1. #!/bin/rc
  2. cd /mail/box/$user
  3. >>_bounced
  4. chmod +arw _bounced
  5. >>_prof.mbox
  6. >>_prof.spam
  7. if(! test -s _prof.mbox)
  8. cp /mail/lib/prof.mbox _prof.mbox
  9. if(! test -s _prof.spam)
  10. cp /mail/lib/prof.spam _prof.spam
  11. chmod +lrw _prof.mbox _prof.spam
  12. >>spam
  13. chmod +alrw spam
  14. i=0
  15. if(test -f pipeto){
  16. while(test -f pipeto.$i)
  17. i=`{echo 1+$i |hoc}
  18. mv pipeto pipeto.$i
  19. echo saved pipeto as pipeto.$i
  20. }
  21. cp /mail/lib/pipeto.bayes pipeto
  22. chmod 775 pipeto