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