From owner-freebsd-questions@FreeBSD.ORG Mon Aug 4 14:06:35 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 430581065682 for ; Mon, 4 Aug 2008 14:06:35 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id E9F3E8FC27 for ; Mon, 4 Aug 2008 14:06:34 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.2/8.14.2) with ESMTP id m74E6X4K039081; Mon, 4 Aug 2008 08:06:33 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.2/8.14.2/Submit) with ESMTP id m74E6X3p039078; Mon, 4 Aug 2008 08:06:33 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Mon, 4 Aug 2008 08:06:33 -0600 (MDT) From: Warren Block To: Martin Schweizer In-Reply-To: <20080804050617.GA37021@saturn.pcs.ms> Message-ID: References: <20080804050617.GA37021@saturn.pcs.ms> User-Agent: Alpine 1.10 (BSF 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (wonkity.com [127.0.0.1]); Mon, 04 Aug 2008 08:06:33 -0600 (MDT) Cc: freebsd-questions@freebsd.org Subject: Re: Printing with lpd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Aug 2008 14:06:35 -0000 On Mon, 4 Aug 2008, Martin Schweizer wrote: > I'm playing around with lpd. My setup: a FreeBSD 7.0 server and a attached HP LaserJet 2840N (connected via ethernet), my > /etc/printcap: > hplj2840|lp|Hewlett Packard LaserJet 2840C:\ > :sh:\ > :lp=:rm=hplj2840:rp=raw:sd=/var/spool/lpd/hplj2840:\ > :lf=/var/log/lpd-errs:\ > :if=/usr/local/libexec/if-simple: > > and if-simple: > /usr/local/bin/recode latin1..ibmpc > > The prints are ok so fare (incl. the german umlauts). If I print text mails out from mutt the seems ok too. But if the > mails has some incorrect wrapped lines (> 72 caracters) the lines are not wrapped on the output. What do I worng here? There's a PCL command for wrapping long lines: &s0C (Untested by me, I use PostScript.) Your if-simple can send that escape sequence before the actual file. /usr/ports/print/enscript is a convenient text to PostScript formatter which wraps long lines by default. -Warren Block * Rapid City, South Dakota USA