mcom: use file --mime instead of file -i

This also works on macOS.

Closes #162.
pull/163/head
Leah Neukirchen 5 years ago
parent a60e705e51
commit 68272afcba

@ -79,7 +79,7 @@ do_mime() {
msed '/attach/d' "$draft"
for f in $(mhdr -M -h attach "$draft"); do
printf '#%s %s\n' \
"$(file -Lbi "$f" | sed 's/ //g')" \
"$(file -Lb --mime "$f" | sed 's/ //g')" \
"$f"
done
) | mmime >"$draftmime"

Loading…
Cancel
Save