SUMMARY: mailtool printing problem

From: Art Hebert (art@infinity.com)
Date: Wed Nov 10 1993 - 16:59:21 CST


The original request:

> This is probably very simple but I'm tearing my hair out.
> One of my users types out an email without hitting carriage
> return at the end of the line (it sraps on the screen), so
> when they print it out they lose everything after the wrap.
>
> Any ideas?

Results:

This is what I do: save the message to a file (I always call it "temp"
so that it always get overwritten). Then I go to a window (where I am
usually in my home directory) and type 'fmt temp | lpr'. Works great
and takes only seconds. One caveat: fmt destroys fancy indenting. You
could write your own line-wrapping program, however.

Try setting auto carriage return/linefeed on the printer. Most printers
will allow that. It works the same way on the printer that screen wrap
does on the screen. Might also have to look in the terminfo for the
printer (if you're using it) to be sure it understands what you're doing
.. . .

Tell him to select the body of the message and then do an "Extras" and
"format" on it.

Run it through "fmt -80" or "fmt -s -80"

Force him to do the line breaks himself by changing the editors
default line break behaviour. There is an Xdefault called
  text.lineBreak: Clip_lines
(I think the value is Clip_lines, but I'm not sure. We use
Wrap_char here, which could be helpful already in your situ-
ation.)

In the properties section of mailtool it specifies the command to use
to print, try using one of these:

fold | mp | lpr
fmt -s | mp | lpr

The fold(1) or fmt(1) commands will wrap lines correctly before sending
it to the printer or whatever. fold breaks the line at a particular
width, fmt will break at word boundaries. Try them and see which one
you prefer.

set printmail="fold|lpr -p"

mp | lpr -P<Printer Name>

Thanks to

 Dan Stromberg - OAC-DCS <strombrg@hydra.acs.uci.edu>
 George Capehart <georgec@Cybernetics.COM>
 Jon Wright <Jon.Wright@citibank.com.au>
 Kambiz Aghaiepour <kxaghai@srv.PacBell.COM>
 Nora Hermida <nhermida@sun1.wwb.noaa.gov>
 Pat Cain (Denver) <pjc@denver.ssds.COM>
 anderson@neon.mitre.org (Mark S. Anderson)
 andy@homebase.vistachrome.com (Andy Finkenstadt)
 art@infinity.com (Art Hebert)
 bern@kleopatra.Uni-Trier.DE (Jochen Bern)
 bernards@ECN.NL (Marcel Bernards)
 birger@vest.sdata.no (Birger A. Wathne)
 blakespr@reston.eri.com (Paul Blakeslee)
 blenherr@analytics.abb.com (Bill Lenherr)
 david@Eng (DRAIN BAMAGE)
 dotty@elvis.tgivan.wimsey.bc.ca (Dotty Pon)
 eamonn@compapp.dcu.ie (Eamonn McGonigle)
 eckhard@ts.go.dlr.de (Eckhard Rueggeberg)
 feldt@phyast.nhn.uoknor.edu (Andy Feldt)
 glenn@uniq.com.au (Glenn Satchell - Uniq Professional Services)
 gpr@proteon.com (Gary Richardson)
 hello@cs.utwente.nl (Ronald Hello)
 jhunter@PCS.CNU.EDU (Thar is Grumpy)
 joaquim.capitao@cen.jrc.it (Joaquim Areia Capitao)
 kevin@uniq.com.au (Kevin Sheehan {Consulting Poster Child})
 kmah@DCS-Systems.COM (Kevin Mah)
 mgh@bihobl2.bih.harvard.edu (Michael G. Harrington)
 mulara88@matrix.newpaltz.edu (james mularadelis)
 patp@juliet.ll.mit.edu ( Patrick Pawlak )
 penrod@whiplash.er.usgs.gov (Dan Penrod)
 phil@dgbt.doc.ca (Phil Blanchfield)
 ries@psych (Mike Ries - Corporate Systems Engineering)
 scotty@calvin.uni-muenster.de (Scott Hampson)
 syoung@cs.buffalo.edu (Steve Young)
 ye@Software.ORG (Jian Ye)

Status: RO

Status: RO



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:08:28 CDT