svlug_printout_hints

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



Date: Thu, 4 Jan 2001 15:41:03 -0500
From: Bill Jonas <bill@billjonas.com>
To: svlug@svlug.org
Cc: Walter Reed <walt@hubinternet.com>
Subject: Re: [svlug] Mutt, procmail and printing with word wrap

On Thu, Jan 04, 2001 at 10:06:10AM -0800, Dan Copeland wrote:
>   Okay, but I'm not sure how to feed the file to be printed into a pipe in the
> first place...  As I understand it Mutt just appends the filename to the
> print_command variable - how do I use a pipe if the filename must appear last?

Mutt lets you pipe the message to any arbirtary command you like.  Use the |
key.  For example, '|lpr<Enter>'.

>   I've read the man and info pages for pr and can't get it to word wrap.
> I can truncate, but not wrap.  This would be convenient if it worked given the
> -p option to lpr, which would solve my Mutt problem, though I don't know how
> one specifies options to pr in that case...

Try using fmt.  You might try something like:

|fmt |lpr

If that works, then you could just stick the sequence of commands you use
into a script.  *shrug*


===

the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu