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" msed '/attach/d' "$draft"
for f in $(mhdr -M -h attach "$draft"); do for f in $(mhdr -M -h attach "$draft"); do
printf '#%s %s\n' \ printf '#%s %s\n' \
"$(file -Lbi "$f" | sed 's/ //g')" \ "$(file -Lb --mime "$f" | sed 's/ //g')" \
"$f" "$f"
done done
) | mmime >"$draftmime" ) | mmime >"$draftmime"

Loading…
Cancel
Save