Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!mit-eddie!cybvax0!frog!celtics!roger From: roger@celtics.UUCP (Roger B.A. Klorese) Newsgroups: comp.unix.questions Subject: Re: Mail - How can I quickly print a mail msg? Message-ID: <1628@celtics.UUCP> Date: Thu, 13-Aug-87 13:25:00 EDT Article-I.D.: celtics.1628 Posted: Thu Aug 13 13:25:00 1987 Date-Received: Sun, 16-Aug-87 06:09:59 EDT References: <467@potpourri.UUCP> <581@sol.ARPA> <3816@pyr.gatech.EDU> <4533@nsc.nsc.com> Reply-To: roger@celtics.UUCP (Roger B.A. Klorese) Distribution: na Organization: CELERITY (Northeast Area), Framingham, MA Lines: 28 In article <4533@nsc.nsc.com> grenley@nsc.UUCP (George Grenley) writes: >I would like to be able to print a mail message from mail. Currently, >I save the message, then print them when I exit. I would prefer to >just print it, without creating a file, as I don't want to keep it >around on disk. I use 4.3bsd and csh. > >Can anybody help? Here's an inelegant but painless solution... In your .mailrc file, include the following: alias print |lpr Then, when you have a message you wish to print, after reading it, send it on to the mock-user "print". If you read message 5, for example... & m print ~f 5 ^D (If you wish to provide this capability system-wide, put the alias in /usr/lib/aliases instead of your .mailrc file.) -- ///==\\ (No disclaimer - nobody's listening anyway.) /// Roger B.A. Klorese, CELERITY (Northeast Area) \\\ 40 Speen St., Framingham, MA 01701 +1 617 872-1552 \\\==// celtics!roger@seismo.CSS.GOV - seismo!celtics!roger