Is there a way to forward and keep mail?

Dan Bernstein brnstnd at kramden.acf.nyu.edu
Fri Oct 19 14:04:44 AEST 1990


In article <epeterso.656267220 at houligan> epeterson at encore.com (Eric Peterson) writes:
> Simply create a file called ".forward" in your home directory that
> contains the following line (including the quotation marks):
>    "| tee /usr/spool/mail/mbonner | mail other-acct at host.domain"

Don't do this! tee will overwrite the mailbox on every new piece of
mail. tee -a is implemented incorrectly on some systems. And the mailbox
format is probably not just one message after another.

Much better is to have two lines:
\mbonner
other-acct at host.domain

The \ turns off all alias interpretation and forces delivery straight to
your mailbox. This is much more efficient than the above pipe, and it
works.

---Dan



More information about the Comp.unix.questions mailing list