From owner-freebsd-questions@FreeBSD.ORG Wed Feb 23 07:14:56 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A43BA16A4CE for ; Wed, 23 Feb 2005 07:14:56 +0000 (GMT) Received: from sccmmhc92.asp.att.net (sccmmhc92.asp.att.net [204.127.203.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3582543D2D for ; Wed, 23 Feb 2005 07:14:56 +0000 (GMT) (envelope-from m.hauber@mchsi.com) Received: from wizard.valleygate.net (12-219-204-24.client.mchsi.com[12.219.204.24]) by sccmmhc92.asp.att.net (sccmmhc92) with ESMTP id <20050223071455m9200bfvg8e>; Wed, 23 Feb 2005 07:14:55 +0000 From: Mike Hauber To: freebsd-questions@freebsd.org Date: Wed, 23 Feb 2005 02:18:36 -0500 User-Agent: KMail/1.7.2 References: <200502222316.32866.m.hauber@mchsi.com> <20050223055018.GA82969@keyslapper.net> In-Reply-To: <20050223055018.GA82969@keyslapper.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200502230218.37665.m.hauber@mchsi.com> cc: Louis LeBlanc Subject: Re: filtering HTML tags from email X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: m.hauber@mchsi.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Feb 2005 07:14:56 -0000 On Wednesday 23 February 2005 12:50 am, Louis LeBlanc wrote: > On 02/22/05 11:16 PM, Mike Hauber sat at the `puter and typed: > > Without going through the hassle of setting up proxy servers, > > isn't there a way that one can filter out html tags from a > > message (say, pipe the email through the filter from kmail > > for instance?) > > > > Perhaps I'm looking too hard for it, but I didn't see > > anything in the ports tree except for /mail/nohtml. I tried > > to pipe a html message through nohtml.py from kmail, but > > doesn't seem to work (although I'm getting no errors from > > kmail's filter log). > > > > Any ideas? Thx. > > Mutt saves to a temp file then calls the following command: > lynx -localhost -dump %s > where '%s' is the temporary file you saved it to. > > You could also just pipe it to the following: > lynx -localhost -dump -stdin > > the -localhost argument prevents lynx from simply following > links external to your machine - helpful to avoid generating > hits for unscrupulous spammers that get paid for hits on a URL. > > Just make sure lynx is installed. > > Lou Okay, so to be sure, there is no filter (as of yet) to simply open an email file, strip the HTML tags, and resave it? I'm not complaining, as this may actually be something I'm capable of creating myself. (I'll make this my first python project. :) ) I'm just making sure I'm not missing anything obvious before I start working on it. It's irritating to spend time on something only to find out that it's already been done. Thanks, Mike