mpack

 

介紹

# mpack: Pack a file in MIME format for mailing and news

 

 

安裝:

apt-get install mpack

# /usr/bin/mpack

# /usr/bin/munpack

e.g.

mpack:

mpack inputfile -s subject -o  outputfile

essage-ID: <16976.1389338001@saltstack>
Mime-Version: 1.0
Subject: test
Content-Type: multipart/mixed; boundary="-"

This is a MIME encoded message.  Decode it with "munpack"
or any other MIME reading software.  Mpack/munpack is available
via anonymous FTP in ftp.andrew.cmu.edu:pub/mpack/
---
Content-Type: application/octet-stream; name="ca.crt"
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="ca.crt"
Content-MD5: GxU7tJyOGKfEgE9i1bgFRw==

LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVaakNDQTFLZ0F3SUJBZ0lKQUphK2N3
MUdsOVVhTUEwR0NTcUdTSWIzRFFFQkJRVUFNSUdBTVFzd0NRWUQKVlFRR0V3SkRUakVTTUJB
.........................................
-----

 

munpack:

# unpack plesk 8.5 backup

# zcat DUMP_FILE.gz > DUMP_FILE
# cat DUMP_FILE | munpack

output:

munpack: reading from standard input
dump.xml (text/xml)
file.mysql (application/octet-stream)
file.httpdocs (application/octet-stream)
.........................................