s4
diff sendmultipart.sh @ 904:0352ff0fb37f
Suppress user.name update for unchanged values, which takes a lot time.
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Sun, 03 Jan 2021 13:37:20 +0900 |
parents | 4d580bd8c47f |
children |
line diff
1.1 --- a/sendmultipart.sh Tue May 12 11:31:50 2020 +0900 1.2 +++ b/sendmultipart.sh Sun Jan 03 13:37:20 2021 +0900 1.3 @@ -4,7 +4,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 Tue May 12 11:29:54 2020 on firestorm 1.8 +# Last modified Thu May 14 07:31:16 2020 on firestorm 1.9 # 1.10 # Typical usage: 1.11 # echo "Hi, here's photo I've taken. Enjoy" | \ 1.12 @@ -61,7 +61,7 @@ 1.13 esac 1.14 shift 1.15 done 1.16 -rcptheader=`echo $rcpts|tr ' ' '\n'|sort -u|sed 's/^/To: /g'` 1.17 +rcptheader=${SMAIL_TO:-`echo $rcpts|tr ' ' '\n'|sort -u|tr '\n' ', '`} 1.18 plainheader="Content-Type: text/plain; charset=$textcharset 1.19 Content-Transfer-Encoding: 7bit" 1.20 1.21 @@ -94,7 +94,7 @@ 1.22 1.23 # Generate contents 1.24 ( cat<<EOF 1.25 -${rcptheader:-To: [Not specified]} 1.26 +To: ${rcptheader:-[Not specified]} 1.27 ${REPLYTO:+Reply-to: $REPLYTO$nl}Subject: ${subject:-$*} 1.28 $ctheader 1.29 Mime-Version: 1.0