diff --git a/mcom b/mcom index f0de75c..c378b33 100755 --- a/mcom +++ b/mcom @@ -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() {