From owner-freebsd-questions Mon Feb 25 6:20:30 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 9F07837B402 for ; Mon, 25 Feb 2002 06:20:24 -0800 (PST) Received: from hades.hell.gr (patr530-a069.otenet.gr [212.205.215.69]) by mailsrv.otenet.gr (8.12.2/8.12.2) with ESMTP id g1PEKCqQ012496; Mon, 25 Feb 2002 16:20:20 +0200 (EET) Received: (from charon@localhost) by hades.hell.gr (8.11.6/8.11.6) id g1P9vtr70987; Mon, 25 Feb 2002 11:57:55 +0200 (EET) (envelope-from keramida@freebsd.org) Date: Mon, 25 Feb 2002 11:57:54 +0200 From: Giorgos Keramidas To: parv Cc: f-q Subject: Re: ot - software to wrap email to be run thru' procmail Message-ID: <20020225095754.GA70924@hades.hell.gr> References: <20020225071724.GA31766@moo.holy.cow> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020225071724.GA31766@moo.holy.cow> User-Agent: Mutt/1.3.25i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-02-25 02:17, parv wrote: > hi ya, > > i am in need of software to wrap email messages to be run thru' > procmail recipe. > ... > does anybody have any other suggestions for a c, perl, rexx, or > (ba|k|z)sh based program? (i can fiddle w/ all the languages > mentioned except c.) I've used par from the ports, with varying degrees of success and brokenness in the past. Now I have become addicted to emacs' filling and vim's gq intelligence. Before you go on a wrap-the-world campaign though, you might want to consider things like MIME-attachments and multipart messages. In MIME, sometimes the text is `wrapped' by escaping the newline with an equal sign (`=') character at the end of an otherwise valid line. What will happen if you wrap with par(1) the following paragraph from a MIME-encoded multipart message? This is a very long line of text that will certainly have = to be wrapped, since the length is too large to fit in a = terminal window, even if you use the 132x25 text mode of the = FreeBSD syscons console. When mailers decode this MIME part and wrap the text, they also remove the equal signs, before wrapping. I don't know of an easy way to do this with par. Note that I'm not saying it's impossible. I just don't know if it can be done. Giorgos Keramidas FreeBSD Documentation Project keramida@{freebsd.org,ceid.upatras.gr} http://www.FreeBSD.org/docproj/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message