From owner-freebsd-questions@FreeBSD.ORG Thu Apr 25 01:10:01 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 A931A659 for ; Thu, 25 Apr 2013 01:10:01 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 6E87B1736 for ; Thu, 25 Apr 2013 01:10:01 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.6/8.14.6) with ESMTP id r3P1A0ZB066160; Wed, 24 Apr 2013 19:10:00 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.6/8.14.6/Submit) with ESMTP id r3P19xUP066157; Wed, 24 Apr 2013 19:10:00 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Wed, 24 Apr 2013 19:09:59 -0600 (MDT) From: Warren Block To: Martin McCormick Subject: Re: Procmail Decoding Mime Messages In-Reply-To: <201304242107.r3OL7Z55094161@x.it.okstate.edu> Message-ID: References: <201304242107.r3OL7Z55094161@x.it.okstate.edu> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Wed, 24 Apr 2013 19:10:00 -0600 (MDT) Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Apr 2013 01:10:01 -0000 On Wed, 24 Apr 2013, 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? > > I use bogofilter to filter spam and it does a very good > job after one builds a core of spammishness, but legitimate > messages are often-times filled with base64 sections that look > like garbage to the regular expressions that one puts in > .procmailrc for sorting mail. > > When searching for information, I found something called > mimencode which both encodes and decodes these attachments, but > there is no FreeBSD port called mimencode so it occurred to me > that some other application might exist which is in the ports > that does basically the same thing. > > Is there anything which will take a raw email message > and spit out linear strings which can be processed like normal > text? mail/maildrop has a reformime program which may be useful. maildrop itself is like a better and easier to use procmail.