LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

munpack

extracts files from MIME-encoded messages

TLDR

Extract MIME attachments
$ munpack [message.mime]
copy
Extract from stdin
$ cat [email.eml] | munpack
copy
Extract to specific directory
$ munpack -C [output_dir] [message.mime]
copy
Quiet mode
$ munpack -q [message.mime]
copy
Force overwrite
$ munpack -f [message.mime]
copy

SYNOPSIS

munpack [options] [files...]

DESCRIPTION

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.

PARAMETERS

-f

Force overwrite existing files.
-q
Quiet mode.
-t
Text mode (convert newlines).
-C dir
Extract to directory.

EXAMPLE

$ # Extract from email
munpack saved_email.eml

# Extract from mailbox
formail -s munpack < mbox

# Extract to specific folder
munpack -C ~/attachments email.mime
copy

SUPPORTED ENCODINGS

$ - Base64
- Quoted-printable
- Uuencode (legacy)
- BinHex (legacy)
copy

INSTALL

sudo apt install mpack
copy
brew install mpack
copy
nix profile install nixpkgs#mpack
copy

CAVEATS

Filenames may be sanitized. Nested MIME may need multiple passes. Some legacy encodings not fully supported.

HISTORY

munpack was written by John G. Myers at Carnegie Mellon University as part of the MIME utilities for handling email attachments.

SEE ALSO

mpack(1), uudecode(1), base64(1), ripmime(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid