home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / mail / elm / 2132 < prev    next >
Encoding:
Text File  |  1992-08-14  |  1.6 KB  |  46 lines

  1. Newsgroups: comp.mail.elm
  2. Path: sparky!uunet!hela.iti.org!lokkur!scs
  3. From: scs@lokkur.dexter.mi.us (Steve Simmons)
  4. Subject: Re: how can i use vacation and filter at the same time (maybe FAQ)
  5. Message-ID: <1992Aug15.013647.25472@lokkur.dexter.mi.us>
  6. Keywords: filter, vacation, faq
  7. Organization: Inland Sea
  8. References: <1992Aug14.132411.29239@murdoch.acc.Virginia.EDU>
  9. Distribution: na
  10. Date: Sat, 15 Aug 92 01:36:47 GMT
  11. Lines: 33
  12.  
  13. my2x@fermi.clas.Virginia.EDU (Munho Yi) writes:
  14.  
  15. >i wonder whether i can use filter and vacation at the same time.
  16. >it would be hard since they both using .forward file.
  17.  
  18. I haven't actually tried this, but it should work.
  19.  
  20. The .forward file contains a comma-separated list of things to do
  21. with incoming mail.  The traditional use of vacation in a .forward
  22. file is:
  23.  
  24.    \user, "|/usr/bin/vacation user"
  25.  
  26. meaning "force one copy into my incoming mailbox and force another copy
  27. thru the vacation program with the option `user'."  The traditional use
  28. of filter in a .forward file is"
  29.  
  30.    "|/usr/local/bin/filter"
  31.  
  32. meaning "force all my mail to go through the filter program."  Note
  33. it does *not* force a copy into your incoming mailbox: presumably
  34. filter will place it there if that's the appropriate place.
  35.  
  36. To combine the two, replace the forced copy from the vacation example
  37. with the filter pipe instead of the forced copy:
  38.  
  39.    "|/usr/local/bin/filter", "|/usr/bin/vacation user"
  40.  
  41. Let us know if it works, OK?
  42. -- 
  43.  "Voodoun is a very interesting religion for the whole family, even those
  44.   members of it who are dead."
  45.         -- "Good Omens", by Neil Gaiman and Terry Pratchett
  46.