s4

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 diff
     1.1 --- a/sendmultipart.sh	Thu May 14 22:36:12 2020 +0900
     1.2 +++ b/sendmultipart.sh	Thu May 14 22:39:17 2020 +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