# HG changeset patch # User HIROSE Yuuji # Date 1665614989 -32373 # Node ID e77d6258ad549b072cc2f39dcf661109159590bc # Parent e71a86651d7241ca2224f0cc17b96cc149627af8 Inhibit multiple To: headers. diff -r e71a86651d72 -r e77d6258ad54 s4-funcs.sh --- a/s4-funcs.sh Sun Jul 31 15:26:18 2022 +0900 +++ b/s4-funcs.sh Thu Oct 13 07:49:22 2022 +0859 @@ -1344,7 +1344,9 @@ # $MAIL_FROM <- From: header value from=`echo "${MAIL_FROM:-$admin}"|nkf -jM|tr : /|tr -d '\n'` rcpt=`echo $1|tr ' ' '\n'|sort -u|tr '\n' ' '` # uniq and strip newlines - rcptheader=`echo $1|tr ' ' '\n'|sort -u|sed '2,$s/^/To: /g'` + ## Gmail rejects below(Duplicated headers) + ##rcptheader=`echo $1|tr ' ' '\n'|sort -u|sed '2,$s/^/To: /g'` + rcptheader="To: `echo $1|tr ' ' '\n'|sort -u|tr '\n' ','|sed 's/,$//'`" subj=`echo $2|nkf -jM|tr -d '\n'` sender=${SENDER:-$admin} # Do not call m4 with directly passing text