# HG changeset patch # User HIROSE Yuuji # Date 1589463557 -32400 # Node ID c4beaec803221dc56ffc62f9a22a129c1fdba404 # Parent b1298ce8062542053bac29fe2358c2104024a2a6 To: header shrinked to 1-line(test) diff -r b1298ce80625 -r c4beaec80322 sendmultipart.sh --- a/sendmultipart.sh Thu May 14 22:36:12 2020 +0900 +++ b/sendmultipart.sh Thu May 14 22:39:17 2020 +0900 @@ -4,7 +4,7 @@ # (C)2012,2015 by HIROSE Yuuji [yuuji(at)yatex.org] # You can obtain the latest version of this script from: # http://www.gentei.org/~yuuji/software/sendmultipart.sh -# Last modified Tue May 12 11:29:54 2020 on firestorm +# Last modified Thu May 14 07:31:16 2020 on firestorm # # Typical usage: # echo "Hi, here's photo I've taken. Enjoy" | \ @@ -61,7 +61,7 @@ esac shift done -rcptheader=`echo $rcpts|tr ' ' '\n'|sort -u|sed 's/^/To: /g'` +rcptheader=${SMAIL_TO:-`echo $rcpts|tr ' ' '\n'|sort -u|tr '\n' ', '`} plainheader="Content-Type: text/plain; charset=$textcharset Content-Transfer-Encoding: 7bit" @@ -94,7 +94,7 @@ # Generate contents ( cat<