home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / mail / elm / 2161 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  1.5 KB

  1. Path: sparky!uunet!ulowell!news.bbn.com!olivea!bu.edu!dartvax!coos.dartmouth.edu!steve
  2. From: steve@coos.dartmouth.edu (Steve Campbell)
  3. Newsgroups: comp.mail.elm
  4. Subject: Re: how can i use vacation and filter at the same time (maybe FAQ)
  5. Keywords: filter, vacation, faq
  6. Message-ID: <1992Aug18.212238.5206@dartvax.dartmouth.edu>
  7. Date: 18 Aug 92 21:22:38 GMT
  8. References: <1992Aug14.132411.29239@murdoch.acc.Virginia.EDU>
  9. Sender: news@dartvax.dartmouth.edu (The News Manager)
  10. Distribution: na
  11. Organization: Dartmouth College, Hanover, NH
  12. Lines: 25
  13.  
  14. my2x@fermi.clas.Virginia.EDU (Munho Yi) writes:
  15.  
  16. >i wonder whether i can use filter and vacation at the same time.
  17. >it would be hard since they both using .forward file.
  18.  
  19. Set up the vacation message and dbm files as usual.  Then create a
  20. special version of your filter-rules file that you will use only when
  21. you are on vacation.  It should be just like your regular filter-rules
  22. except at the end where presumably you deposit remaining messages in
  23. your regular mailbox.  Change that final line from
  24.  
  25. always save "/usr/spool/mail/yourname"
  26.  
  27. to
  28.  
  29. always execute "tee -a /usr/spool/mail/yourname | /usr/ucb/vacation yourname"
  30.  
  31. Be sure to use the correct path for the vacation program.  And don't forget
  32. the -a option on tee, otherwise each new message will overwrite the last.
  33.  
  34. This setup has the advantage that vacation messages get sent only to the
  35. people whose mail normally goes into your real mailbox and not to the others -
  36. often mailing lists - whose mail you divert into special mailboxes.
  37.  
  38.                         Steve Campbell
  39.