home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.mail.elm
- Path: sparky!uunet!gatech!rpi!newsserver.pixel.kodak.com!laidbak!tellab5!vpnet!serveme!gagme!dattier
- From: dattier@gagme.chi.il.us (David W. Tamkin)
- Subject: Re: how can i use vacation and filter at the same time (maybe FAQ)
- Message-ID: <1992Aug20.151102.24527@gagme.chi.il.us>
- Originator: dattier@gagme
- Keywords: filter, vacation, faq
- Lines: 34
- Sender: usenet@serveme.chi.il.us
- Organization: Gagme Public Access Seraglio, Chicago, Illinois 60656-1252
- References: <1992Aug14.132411.29239@murdoch.acc.Virginia.EDU> <1992Aug18.212238.5206@dartvax.dartmouth.edu>
- Distribution: na
- Date: Thu, 20 Aug 1992 15:11:02 GMT
-
- steve@coos.dartmouth.edu (Steve Campbell) wrote in
- <1992Aug18.212238.5206@dartvax.dartmouth.edu>:
-
- | 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.
-
- | always execute "tee -a /usr/spool/mail/yourname | /usr/ucb/vacation yourname"
-
- That may be safe if you're on the Internet and you rarely get two letters at
- the same time, but it is poison on UUCP sites, where mail arrives in batches.
- tee does no file locking and text will mix in your mailbox.
-
- Steve Simmons's suggestion to change .forward to
-
- "|/path/to/filter -[v]o /path/to/errorfile","|/path/to/vacation yourname"
-
- sounds much better.
-
- | 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.
-
- Aren't there ways within vacation to take care of that?
-
- Alternatively, your last filter rule could be to execute something that saves
- the letter to a temporary file, feeds that file as stdin to vacation, mails
- it to real-yourname or \yourname, and deletes the temporary file. That
- prevents filed letters from hitting vacation without the risk of text mixing
- in your incoming mailbox.
-
- David W. Tamkin Box 59297 Northtown Station, Illinois 60659-0297
- dattier@gagme.chi.il.us CompuServe: 73720,1570 MCI Mail: 426-1818
-