Skip to content

Instantly share code, notes, and snippets.

View joe-at-cp's full-sized avatar

Joe Dillig joe-at-cp

View GitHub Profile
@markusfisch
markusfisch / mime.sh
Last active March 24, 2023 16:22
bash functions to dump and inspect a message in MIME format
#!/usr/bin/env bash
##############################################################################
#### MIME interface
##############################################################################
# Parse message in MIME format and create a temporary cache directory
mime_parse()
{
MIME_CACHE=${MIME_CACHE:-`mktemp -d ${BIN}.XXXXXXXXXX`}