From owner-freebsd-questions@FreeBSD.ORG Wed Apr 24 21:33:59 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 5A51DBD4 for ; Wed, 24 Apr 2013 21:33:59 +0000 (UTC) (envelope-from martin@x.it.okstate.edu) Received: from mailhost01.okstate.edu (mailhost02.okstate.edu [139.78.133.4]) by mx1.freebsd.org (Postfix) with ESMTP id 1746B1F6F for ; Wed, 24 Apr 2013 21:33:58 +0000 (UTC) Received: from x.it.okstate.edu (x.it.okstate.edu [139.78.2.13]) by mailhost02.okstate.edu (8.14.5/8.14.5) with ESMTP id r3OL7ZVj020125 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 24 Apr 2013 16:07:35 -0500 Received: from x.it.okstate.edu (localhost [127.0.0.1]) by x.it.okstate.edu (8.14.5/8.14.5) with ESMTP id r3OL7Z55094161 for ; Wed, 24 Apr 2013 16:07:35 -0500 (CDT) (envelope-from martin@x.it.okstate.edu) Message-Id: <201304242107.r3OL7Z55094161@x.it.okstate.edu> From: Martin McCormick cc: freebsd-questions@freebsd.org Subject: Procmail Decoding Mime Messages MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <94159.1366837655.1@x.it.okstate.edu> Date: Wed, 24 Apr 2013 16:07:35 -0500 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8626, 1.0.431, 0.0.0000 definitions=2013-04-24_08:2013-04-24,2013-04-24,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=adultspam_notspam policy=adultspam score=0 spamscore=0 suspectscore=1 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1211240000 definitions=main-1304240189 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: Wed, 24 Apr 2013 21:33:59 -0000 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? Thank you. Martin McCormick