On Tue, Aug 22, 2000 at 03:10:40PM +0300, Leonid Mamtchenkov wrote:
> 
> 1. For printing messages I am using "pr -o 4 -W 72 | lpr".  The problem is
> that it does not wrap the long lines, but trancate them, which is not a
> good thing.  Maybe someone figured out the way to print nicely long lines.
> (Yeah, I guess, this question is not very much for mutt mailing list, but
> don't know where else to write).  As an alternative to pr, I have tried
> a2ps, but pr looks better ;-)

Here are some solutions I've used for printing :

set print_command="fmt -s | mpage -1 -f -H | lpr -"
set print_command="enscript -j --header='$n|%W|Page $% of $=' -f "Courier11" -i3 
--word-wrap "
set print_command="a2ps -1 -R --pretty-print=mail -o - | lpr -"

As you can see, there are a lot of "ps-formatter" that do this sort of
job. a2ps gives very nice output, with different fonts for the header
and so, but I think he doesn't wrap the lines. Maybe beginning the pipe
with "fmt -s" ?

Another idea is to change the last part of the pipe ("| lpr -") by this
one "| gv -", so you can visualize the output, and select the
appropriate pages, before printing. But it works only with X. Maybe it
could be possible to give a condition ?

Regards,

Gauthier

Reply via email to