about summary refs log tree commit diff
path: root/mcom
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2019-02-05 09:49:59 +0100
committerLeah Neukirchen <leah@vuxu.org>2019-02-05 09:49:59 +0100
commit9d280aa8a30a22e57db505450e9586346ae9943c (patch)
treeead53df2b2f002e9cc42fbc89ebd1362a097ad20 /mcom
parent5bd1ef9cffc0a6dc0178277dfca3367c1c25895d (diff)
downloadmblaze-9d280aa8a30a22e57db505450e9586346ae9943c.tar.gz
mblaze-9d280aa8a30a22e57db505450e9586346ae9943c.tar.xz
mblaze-9d280aa8a30a22e57db505450e9586346ae9943c.zip
mcom: do_mime: fix for loop quoting
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"