From owner-freebsd-questions@FreeBSD.ORG Thu Apr 25 13:45:47 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 0B45ED6D for ; Thu, 25 Apr 2013 13:45:47 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id D932315B9 for ; Thu, 25 Apr 2013 13:45:46 +0000 (UTC) Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.41]) by be-well.ilk.org (Postfix) with ESMTP id 11CFA33C2A; Thu, 25 Apr 2013 09:45:35 -0400 (EDT) Received: by lowell-desk.lan (Postfix, from userid 1147) id 21CEA39829; Thu, 25 Apr 2013 09:45:32 -0400 (EDT) From: Lowell Gilbert To: Martin McCormick , freebsd-questions@freebsd.org Subject: Re: Procmail Decoding Mime Messages References: <201304242107.r3OL7Z55094161@x.it.okstate.edu> <20130425000436.5b999ba5.freebsd@edvax.de> Date: Thu, 25 Apr 2013 09:45:32 -0400 In-Reply-To: <20130425000436.5b999ba5.freebsd@edvax.de> (Polytropon's message of "Thu, 25 Apr 2013 00:04:36 +0200") Message-ID: <44y5c6zptv.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Apr 2013 13:45:47 -0000 Polytropon writes: > On Wed, 24 Apr 2013 16:07:35 -0500, Martin McCormick wrote: >> Is there a filter that one can run in procmail in which >> base64 encoded data go in and text comes out so one can allow >> procmailrc to do its work? >> [...] >> Is there anything which will take a raw email message >> and spit out linear strings which can be processed like normal >> text? > > I think this is possible with uudecode, in this case b64decode. > See "man uuencode" for more information. uuencode predates MIME. Although there are MIME types defined for it, the base-system tools don't handle the MIME headers or section marking. For this purpose, a MIME-aware tool (such as ripmime, or metamail, or mmencode) will be much more useful as part of an automated filtering system.