From owner-freebsd-questions@FreeBSD.ORG Sat May 30 15:41:48 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9EDAC1065695 for ; Sat, 30 May 2009 15:41:48 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 0FF2F8FC23 for ; Sat, 30 May 2009 15:41:46 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3) with ESMTP id n4UFfdZ0018582; Sat, 30 May 2009 17:41:39 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3/Submit) with ESMTP id n4UFfd3Z018579; Sat, 30 May 2009 17:41:39 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Sat, 30 May 2009 17:41:39 +0200 (CEST) From: Wojciech Puchar To: Vince Sabio In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: MIME attachments in mbox files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 May 2009 15:41:49 -0000 > I have a need (well, I have lots of needs, but I'll try to stay focused here) > to be able to take a Windows zip file that is stored as a MIME attachment to > an e-mail message in an Mbox-format spool file, and unzip the attachment. I > actually need to script the process. In case it helps, I can dedicate a > mailbox to the task. If necessary, I can write my own parser to strip out the > attachment, in which case I'd need only a widget that can take in a MIME > (base64) encoded zip file, convert it to binary, and unzip it. > > Anyone know of any FreeBSD utility(ies) that do(es) this? i'm not sure if i understand well what you want, but install metamail package from ports. there is here program that can just extract all attachments to files. then you can unzip