setup.bayes 468 B

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