From uzs8kb@uni-bonn.de Tue May 27 19:44:12 1997 Path: fu-berlin.de!news.mathworks.com!rill.news.pipex.net!pipex!tank.news.pipex.net!pipex!iafrica.com!psgrain!u.washington.edu!PINE-INFO-owner From: uzs8kb@uni-bonn.de (Robin S Socha) Newsgroups: comp.mail.pine Subject: Re: Character fonts Date: 21 May 1997 03:58:12 -0700 Organization: PSGnet mail to news gate Lines: 49 Sender: nobody@psg.com Message-ID: References: NNTP-Posting-Host: rain.psg.com Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-M2n: psg.com -----BEGIN PGP SIGNED MESSAGE----- On Tue, 20 May 1997, Mauro Copelli wrote: >On 16 May 1997, Sven Guckes wrote: >> copelli@luc.ac.be (Mauro Copelli): [portugese headers] >> Looks like these characters will need "iso-8859-1" - not "iso-8859". ;-) >Yep, sure, that's what I meant :-P. Still, it works only in the message >itself, not in the "subject" line (which would be rather useful, one >should agree). So, any clue? Yep. Anything not us-ascii doesn't have anything to do in the header. By definition, the header is supposed to contain us-ascii only. Here's a workaround for those of you using procmail (kindly made up for perl lusers like me by era eriksson and Philip Guenther : :0 fh * =\?ISO-8859-[0-9]+\?Q\? |perl -pe 's#=\?ISO-8859-\d+\?Q\?(.*?)\?=#$s=$1; $s=~s/\s+(\r?\n)/$1/g;'\ - -e '$s=~s/=\r?\n//g; $s=~s/=([\da-fA-F]{2})/pack("C", hex($1))/ge;'\ - -e '$s#ge;' Hope that helps any. Cheers, 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++$>+++$ P+>++$ E>+ W- N+ o@ w--- M-- PS--- PE+++ Y+ PGP++>+++ t+() 5-- tv++(+) b+++ DI++ D+(++) G++>+++ e++>+++ h r++>+++ y+** -----BEGIN PGP SIGNATURE----- Version: 2.6.3i Charset: noconv iQEVAwUBM4LIWWe8+XvDOeNZAQHfpQf9EfAS9IxAZCYHNnjE9+b1aT4hcSrZJ4P1 NRd9exWYonwC7g/uDF/GslhZ4f3VzMCiue7zxVngC99z65hpEki9dOD0GeQ5rUWE hyeqhOMQbd6DAwSt17bYRvxCQkNW7yv1TOPCT4wcet0vkltmBHimfxWoCR2RjgPO RFYwqTXflxyre0uG4S0yWJz+VBFMjURH+sM1TjR4ZDiGGs2hnVioLCm0X307yGBt wzkEO4mtmHNuLm83xTNwFc3mPKvZs1rf1FT8mtfx3EcMfmQcy/EoFwzAnpPLAPCs 6Vm8yy0OAcFgftRZ6aMn9xXNRi+JQFejVm9MWn0lDEzdJJImiLnltg== =8qhz -----END PGP SIGNATURE----- From uzs8kb@uni-bonn.de Tue May 27 19:47:26 1997 Path: fu-berlin.de!news.mathworks.com!howland.erols.net!surfnet.nl!feed2.belnet.be!news.belnet.be!feed1.news.innet.be!INbe.net!stns.news.pipex.net!warm.news.pipex.net!pipex!tank.news.pipex.net!pipex!iafrica.com!psgrain!u.washington.edu!PINE-INFO-owner From: uzs8kb@uni-bonn.de (Robin S Socha) Newsgroups: comp.mail.pine Subject: Re: help : printout Date: 26 May 1997 03:31:29 -0700 Organization: PSGnet mail to news gate Lines: 31 Sender: nobody@psg.com Message-ID: References: NNTP-Posting-Host: rain.psg.com Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-M2n: psg.com On Mon, 26 May 1997, Vani P.S wrote: > 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. 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+**