munpack part of the mpack package.

sudo apt-get install mpack

There are also facilities for dealing with base64 in the ssl/ssh facilities.

man page @

http://www.openssl.org/docs/apps/enc.html




2009/6/6 Andrew Errington <[email protected]>

> Hello,
>
> I have snagged a mailbox file from another user, and I wish to extract an
> attachment contained within it.
>
> The file has a long cryptic name, and I can see the headers, body and
> attachments within it:
>
> Content-Type: application/msword; name="interestingfile.doc"
> Content-Transfer-Encoding: base64
> Content-Disposition: attachment; filename="interestingfile.doc"
>
> I have hunted everywhere for something to split and decode the attachment
> into a standalone file, but can find nothing.  There is a package called
> maildir-utils in existence, but I don't know if it does what I want, and
> it's not in my distro's repository anyway (Mepis 8.0).
>
> Perhaps it is too simple to document?  Yes I could chop the file at the
> boundaries of the attachment, but what tool to decode it?  Even if it's
> simple, please put me out of my misery.
>
> Thanks,
>
> Andrew
>
>


-- 
Sincerely etc.
Christopher Sawtell

Reply via email to