This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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`} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Fallback base64 en-/decoder for systems that lack a native implementation | |
# | |
# @param ... - flags | |
which base64 &>/dev/null || { | |
# if even od is missing | |
which od &>/dev/null || od() | |
{ | |
local C O=0 W=16 |