Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Tue, 11 Jun 2002 09:58:52 +0200 From: Thomas Baker To: Cygwin Subject: "Muttprint" (pretty-print) for Cygwin? Message-ID: <20020611095852.A1600@mail.gmd.de> Mail-Followup-To: Thomas Baker , Cygwin References: <20020607145647 DOT A160 AT LEPIDUS> <20020607133143 DOT GB1408 AT NBOF> <20020608121416 DOT A1332 AT LEPIDUS> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020608121416.A1332@LEPIDUS>; from thomas.baker@bi.fhg.de on Sat, Jun 08, 2002 at 12:14:16PM +0200 This thread started on mutt-users but really belongs here. I have been trying to fill in the gaps of things missing from a Cygwin/Mutt mail environment versus Linux. Now that I got enscript and mailcap working, and procmail almost working, I want to move on to muttprint, urlview, and mailgrep. If the goal of Muttprint is to suppress administrative header lines and print mail nicely, one per page (see http://muttprint.sourceforge.net/pics/sampe.png), then the script I started to write based on Olaf's (see below) is a start. But I spoke too soon: enscript expects just one mail message at a time, not an entire mbox. I should think that the basic Muttprint task would be doable by putting an mbox through a Perl script that did the equivalent of: ignore * # "ignore all header lines by default" unignore from: subject to cc mail-followup-to date then split the into separate messages, piping each one through enscript. Has anyone perhaps already done this? Tom On Sat, Jun 08, 2002 at 12:14:16PM +0200, Thomas Baker wrote: > Olaf wrote: > > $ cat ~/bin/print > > #!/bin/sh > > cat > .printout > > lpr -S -P .printout > > > > where is a windows print server with lpd enabled. > > This script solved my more basic problem of getting _anything_ > to my printer from the Cygwin command line. However, > it does not "pretty print" in the style of Muttprint (see > http://muttprint.sourceforge.net/pics/sampe.png). > > However, enscript has recently appeared in the Cygwin distribution, > so putting Olaf's script together with a suggestion Darren made on > this list a few months ago yields: > > $ cat ~/bin/muttprint > #!/bin/sh > enscript -Email > .printout > c:/winnt/system32/lpr -S -P .printout -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/