mcom: do not match shebang in needs_multipart()

Avoids matching lines like '#!/usr/bin/env sh'.
pull/196/head
codesoap 3 years ago
parent c525c0097e
commit e37d2102e3

@ -75,7 +75,7 @@ stripempty() {
needs_multipart() {
mhdr -h attach "$1" >/dev/null ||
grep -q '^#[^ ]*/[^ ]* ' "$1"
grep -qE '^#[a-zA-Z]+/[a-zA-Z0-9+.;=#-]+ ' "$1"
}
do_mime() {

Loading…
Cancel
Save