From owner-freebsd-questions@FreeBSD.ORG Wed Jul 21 22:34:49 2010 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 4F8FE1065672 for ; Wed, 21 Jul 2010 22:34:49 +0000 (UTC) (envelope-from dkelly@Grumpy.DynDNS.org) Received: from amavis-smtp.knology.net (amavis-smtp.knology.net [75.76.199.6]) by mx1.freebsd.org (Postfix) with ESMTP id 27F238FC12 for ; Wed, 21 Jul 2010 22:34:48 +0000 (UTC) Received: from localhost (amavis-smtp [127.0.0.1]) by amavis-smtp.knology.net (Postfix) with ESMTP id A7E7E88C34 for ; Wed, 21 Jul 2010 18:34:46 -0400 (EDT) Received: from smtp12.knology.net ([75.76.199.9]) by localhost (amavis-smtp.knology.net [75.76.199.6]) (amavisd-new, port 10024) with LMTP id ERopoCfoTlCO for ; Wed, 21 Jul 2010 18:34:46 -0400 (EDT) Received: from Grumpy.DynDNS.org (unknown [24.42.224.110]) by smtp12.knology.net (Postfix) with ESMTP id A23CF5200029 for ; Wed, 21 Jul 2010 18:34:39 -0400 (EDT) Received: by Grumpy.DynDNS.org (Postfix, from userid 928) id D6F462841F; Wed, 21 Jul 2010 17:34:45 -0500 (CDT) Date: Wed, 21 Jul 2010 17:34:45 -0500 From: David Kelly To: FreeBSD-Questions@FreeBSD.org Message-ID: <20100721223445.GA44260@Grumpy.DynDNS.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: Strip high bit from text? 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: Wed, 21 Jul 2010 22:34:49 -0000 I regularly get email from a Blackberry user which my ISP then adds this header, "X-MIME-Autoconverted: from quoted-printable to 8bit". So far so good but the result always contains a number of 0xa0's in places a plain old space belongs. Mutt/vim renders these as "?" making a complete mess of things. Already use procmail so adding an automatic filter should not be difficult if only I can come up with on. Tried "tr \240 ' ' < testfile | hd" and was not able to change the 0xa0 into anything. Have already spent much more time trying to make tr or sed do the job than it would have taken to knock something out in C, but I think there should be something laying around already in the base system to perform this task. Suggestions? Repair the email while procmail has it? Reconfigure mutt and/or vim? -- David Kelly N4HHE, dkelly@HiWAAY.net ======================================================================== Whom computers would destroy, they must first drive mad.