Mail Archives: djgpp/2001/09/30/10:14:17
> 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 -