From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.util.phx.redhat.com (8.12.10/8.12.10) with ESMTP id i5IJkANv026832 for ; Fri, 18 Jun 2004 15:46:10 -0400 Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id i5IJkA302414 for blinux-list@listman.util.phx.redhat.com; Fri, 18 Jun 2004 15:46:10 -0400 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i5IJk9002410 for ; Fri, 18 Jun 2004 15:46:09 -0400 Received: from nntp.AegisInfoSys.com (nntp.AegisInfoSys.com [65.242.138.29]) by mx1.redhat.com (8.12.10/8.12.10) with SMTP id i5IJk8e1021406 for ; Fri, 18 Jun 2004 15:46:09 -0400 Received: (from henry@localhost) by nntp.AegisInfoSys.com (8.6.9/8.6.9) id PAA18137 for blinux-list@redhat.com; Fri, 18 Jun 2004 15:46:01 -0400 Message-ID: <20040618154601.A19764@AegisInfoSys.com> Date: Fri, 18 Jun 2004 15:46:01 -0400 From: Henry Yen To: Linux for blind general discussion References: <200406181528.i5IFSd1E093655@dc.cis.okstate.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93 In-Reply-To: <200406181528.i5IFSd1E093655@dc.cis.okstate.edu>; from Martin McCormick on Fri, Jun 18, 2004 at 10:28:39AM -0500 X-RedHat-Spam-Score: 0 X-Loop: blinux-list@redhat.com Subject: Re: Extracting Binaries from MIME-Encoded messages X-BeenThere: blinux-list@redhat.com X-Mailman-Version: 2.1.5 Precedence: junk Reply-To: Linux for blind general discussion List-Id: Linux for blind general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jun 2004 19:46:10 -0000 It sounds to me that your issue is more of how to extract the attachments and less of what to do with them once extracted. As mentioned in other threads, munpack, uudecode, etc., are various base64 decoders. For automatic processing of attachments, I've used the "mhn" utility with success in scripts, although it seems to be split into multiple commands in recent releases. It's a little more complicated than your usual unix/linux utility, but once you've got it set up, it works fine. Also, you might want to consider the "mutt" mail client, which is a full-screen (not graphical) program that handles attachments as well. It operates similar to elm and pine. On Fri, Jun 18, 2004 at 10:28:39AM -0500, Martin McCormick wrote: > I use nmh for reading Email. This user agent places each > incoming message in to a directory with the name of a given folder > such as inbox for all messages that don't belong in other folders. Is > there a good utility for stripping attachments out of a message when > it may contain one or more? > > The manual process is to copy the message to some scratch > file, run vi on the scratch file and look for base64 which is one type > of encoding, and then strip away all but the garbage of the 7-bit data > which is the base64 representation of the binary. Then, I run a perl > script that has been out on the Internet for years which is called > base64decode. It's standard output is the decoded data stream. > > I know that base64 decoding is part of many applications so I > want simply to be able to extract attachments that aren't understood > or can't be displayed such as sound files, etc. -- Henry Yen Aegis Information Systems, Inc. Senior Systems Programmer Hicksville, New York