changeset 683:c4beaec80322

To: header shrinked to 1-line(test)
author HIROSE Yuuji <yuuji@gentei.org>
date Thu, 14 May 2020 22:39:17 +0900
parents b1298ce80625
children 8091eb177596
files sendmultipart.sh
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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<<EOF
-${rcptheader:-To: [Not specified]}
+To: ${rcptheader:-[Not specified]}
 ${REPLYTO:+Reply-to: $REPLYTO$nl}Subject: ${subject:-$*}
 $ctheader
 Mime-Version: 1.0

yatex.org