about summary refs log tree commit diff
path: root/mcom
diff options
context:
space:
mode:
Diffstat (limited to 'mcom')
-rwxr-xr-xmcom4
1 files changed, 2 insertions, 2 deletions
diff --git a/mcom b/mcom
index 74d57ee..f86edea 100755
--- a/mcom
+++ b/mcom
@@ -77,9 +77,9 @@ do_mime() {
 		(
 			IFS=$NL
 			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' \
-				       "$(file -Lbi $f | sed 's/ //g')" \
+				       "$(file -Lbi "$f" | sed 's/ //g')" \
 				       "$f"
 			done
 		) | mmime >"$draftmime"