From owner-freebsd-questions@FreeBSD.ORG Fri Mar 18 21:33:58 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 3F5BA16A4CE for ; Fri, 18 Mar 2005 21:33:58 +0000 (GMT) Received: from mail22.sea5.speakeasy.net (mail22.sea5.speakeasy.net [69.17.117.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BFBC43D2D for ; Fri, 18 Mar 2005 21:33:58 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 21521 invoked from network); 18 Mar 2005 21:33:57 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail22.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 18 Mar 2005 21:33:57 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id A0ED782; Fri, 18 Mar 2005 16:33:56 -0500 (EST) Sender: lowell@be-well.ilk.org To: Gary Kline References: <20050317220638.GA54657@thought.org> From: Lowell Gilbert Date: 18 Mar 2005 16:33:56 -0500 In-Reply-To: <20050317220638.GA54657@thought.org> Message-ID: <44ekec7i63.fsf@be-well.ilk.org> Lines: 13 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: FreeBSD Mailing List Subject: Re: script to save a particular mail file?? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2005 21:33:58 -0000 Gary Kline writes: > Just thought I'd ask the list if anyone has a script to > read /var/mail/ and grab a single file. I just > sub'd to a mailing list that is produced only in HTML. > I'd like to save it to /tmp, strip it, and have it ready > for lynx or links. > > If anyone onlist has already done this, it would save me > from reinventing *this* wheel. The first thing that occurs to me is using formail (part of procmail) and maybe metamail if formail can't extract the HTML...