delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/06/11/03:59:58

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <thomas DOT baker AT bi DOT fhg DOT de>
To: Cygwin <cygwin AT cygwin DOT com>
Subject: "Muttprint" (pretty-print) for Cygwin?
Message-ID: <20020611095852.A1600@mail.gmd.de>
Mail-Followup-To: Thomas Baker <thomas DOT baker AT bi DOT fhg DOT de>,
Cygwin <cygwin AT cygwin DOT com>
References: <20020607145647 DOT A160 AT LEPIDUS> <20020607133143 DOT GB1408 AT NBOF> <20020608121416 DOT A1332 AT LEPIDUS>
Mime-Version: 1.0
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 <server> -P <printer> .printout
> > 
> > where <server> 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 <server> -P <printer> .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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019