Subject: help : printout

From: "Vani P.S" <[email-masked]>
Date: Mon, 26 May 1997 12:50:46 +0530 (GMT+0530)

hi all ,

 i am using pine 3.95 , how to take printout of the mails with only the
 message text and eliminate the header info. The sender and the list of
 receivers should not appear in the printout . 

 i am using a network printer and hence setup the printer name and the
 command for this purpose in pine setup.

 please help.

 tia,
 vani.

---

From: Robin S Socha <[email-masked]>
Date: Mon, 26 May 1997 10:30:35 +0200 (CEST)

> command for this purpose in pine setup.

Use a custom print command:

	Y prYnt
	C CustomPrint 		#this has to be enabled in the setup

then pipe the message through something like this:

	grep -v "From" | grep -v "Subject:" | lpr

This is really ugly, but it should work ;-) and I'm a little too busy to dig
up something cooler... Check the grep man page for nifty enhancements and
share them with us >;-> or, better yet, get a perl guy to work for you.

Later,
Robin

-- 
Robin S. Socha, M.A., Political Science Dept., Bonn University, Bonn
To get my pgp public key, send an e-mail with the subject "get pgp key"
GMC d++ s+:+ a- C++ UL++$>+++$ 	     E>+ W- N+ o@ w--- M-- PS--- PE+++ Y+
PGP++>+++ t+() 5-- tv++(+) b+++ DI++ D+(++) G++>+++ e++>+++ h r++>+++ y+**

---

From: Joe Young <[email-masked]>
Date: Mon, 26 May 1997 08:42:16 -0400 (EDT)

One way is export file, edit to remove header info etc and then print.
Example of edited file below. Little inconvience to doit this was but
it works:
********>>>edited file with header and foot remove<<<<<<*******

	Y prYnt

end of edited file<<<<<<<<<<<End it>>>>>>>>>
Then printit.

Joe Young
New Bern, N.C.

---

From: "Robert de Bath" <[email-masked]>
Date: Tue, 27 May 1997 06:39:52 +0100 (BST)

One custom print command coming right up ...

#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
sed -n '/^$/,$p' | lpr
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Just either type it in directly or put it in a script file.

In a scipt file you could also do:

sed -n '/^$/,$p' | tail +2 | lpr

-- 
Rob.                           (Robert de Bath <http://www.cix.co.uk/~mayday>)

---

From: Terry Gray <[email-masked]>
Date: Tue, 27 May 1997 08:14:17 -0700 (PDT)

Another approach would be to go to the attachment index (while looking at
the message text, press V) and enter 

  |lpr

that is, pipe just the message body to lpr.

-teg