s4
diff sendmultipart.sh @ 466:929a925f10d8
Group name used at the following query should be quoted.
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Tue, 22 Aug 2017 08:51:06 +0859 |
parents | 1bc7cc7487dc |
children | d764faf9194c |
line diff
1.1 --- a/sendmultipart.sh Mon Aug 03 18:40:56 2015 +0900 1.2 +++ b/sendmultipart.sh Tue Aug 22 08:51:06 2017 +0859 1.3 @@ -3,7 +3,7 @@ 1.4 # (C)2012,2015 by HIROSE Yuuji [yuuji(at)yatex.org] 1.5 # You can obtain the latest version of this script from: 1.6 # http://www.gentei.org/~yuuji/software/sendmultipart.sh 1.7 -# Last modified Mon Aug 3 18:40:15 2015 on firestorm 1.8 +# Last modified Fri Oct 21 10:37:19 2016 on firestorm 1.9 # 1.10 # Typical usage: 1.11 # echo "Hi, here's photo I've taken. Enjoy" | \ 1.12 @@ -110,7 +110,7 @@ 1.13 ;; 1.14 *) 1.15 echo -n "Content-Type: " 1.16 - file --mime-type $file | cut -d' ' -f2 1.17 + file --mime-type - < "$file" | cut -d' ' -f2 1.18 echo "Content-Transfer-Encoding: base64" 1.19 echo "Content-Disposition: inline; filename=\"$file\"" 1.20 echo