Linux command
munpack 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Extract MIME attachments
munpack [message.mime]
Extract from stdin
cat [email.eml] | munpack
Extract to specific directory
munpack -C [output_dir] [message.mime]
Quiet mode
munpack -q [message.mime]
Force overwrite
munpack -f [message.mime]
说明
munpack extracts files from MIME-encoded messages. It decodes base64 and quoted-printable content and saves attachments as separate files. munpack is the companion to mpack and handles multipart MIME messages.
参数
- -f
- Force overwrite existing files.
- -q
- Quiet mode.
- -t
- Text mode (convert newlines).
- -C _dir_
- Extract to directory.
FAQ
What is the munpack command used for?
munpack extracts files from MIME-encoded messages. It decodes base64 and quoted-printable content and saves attachments as separate files. munpack is the companion to mpack and handles multipart MIME messages.
How do I run a basic munpack example?
Run `munpack [message.mime]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -f do in munpack?
Force overwrite existing files.