delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/09/30/10:14:17

Date: Sun, 30 Sep 2001 16:05:23 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "D. Taupin (wanadoo-lps)" <taupin AT lps DOT u-psud DOT fr>
Message-Id: <8011-Sun30Sep2001160523+0300-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9
CC: djgpp AT delorie DOT com
In-reply-to: <3BB710E6.C08292C1@lps.u-psud.fr> (taupin@lps.u-psud.fr)
Subject: Re: munpack ?
References: <3BB710E6 DOT C08292C1 AT lps DOT u-psud DOT fr>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Date: Sun, 30 Sep 2001 14:32:38 +0200
> From: "D. Taupin (wanadoo-lps)" <taupin AT lps DOT u-psud DOT fr>
> 
>  Is there somewhere, either a C source of munpack or a DJGPP
> implementation?
> 
>  For those who ignore, munpack is an ancient routine which reads a mail
> file (a single message saved in a file) and extracts all attachments. It
> obiously has the advantage of not trying to click on the attachment,
> which the serious hazard of executing the attachement (virusses).

I don't know anything about munpack, but failing that, you could use
the `recode' utility to extract attachments.  First, use any text
editor to put each attachment to a file.  Then use `recode' to convert
each attachment.  For example, here's ho you convert a base64-encoded
file:

	recode /b64../ < fil.b64 > file

where `file.b64' is the encoded attachment as you extracted it from
the email message, and `file' is the file your correspondent sent you.

A DJGPP port of `recode' can be found in the v2gnu directory.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019