From owner-freebsd-questions@FreeBSD.ORG Mon Aug 4 06:06:21 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 C66931065691 for ; Mon, 4 Aug 2008 06:06:21 +0000 (UTC) (envelope-from kheuer2@gwdg.de) Received: from mailer.gwdg.de (mailer.gwdg.de [134.76.10.26]) by mx1.freebsd.org (Postfix) with ESMTP id 880A48FC1C for ; Mon, 4 Aug 2008 06:06:21 +0000 (UTC) (envelope-from kheuer2@gwdg.de) Received: from gwdu60.gwdg.de ([134.76.8.60]) by mailer.gwdg.de with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1KPtD1-0005WC-Lc; Mon, 04 Aug 2008 08:06:19 +0200 Date: Mon, 4 Aug 2008 08:06:18 +0200 (CEST) From: Konrad Heuer To: Martin Schweizer In-Reply-To: <20080804050617.GA37021@saturn.pcs.ms> Message-ID: <20080804080205.W8566@gwdu60.gwdg.de> References: <20080804050617.GA37021@saturn.pcs.ms> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Level: - X-Virus-Scanned: (clean) by exiscan+sophie 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 06:06:21 -0000 On Mon, 4 Aug 2008, Martin Schweizer wrote: > Hello > > 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? I'd add something like /usr/bin/fold -s -w 80 | /usr/local/bin/recode latin1..ibmpc to the filter script. I don't know whether there's an internal printer setting for wrapping long lines. Best regards Konrad Heuer GWDG, Am Fassberg, 37077 Goettingen, Germany, kheuer2@gwdg.de