Mercurial > hgrepos > hgweb.cgi > s4
changeset 988:e77d6258ad54 draft
Inhibit multiple To: headers.
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Thu, 13 Oct 2022 07:49:22 +0859 |
parents | e71a86651d72 |
children | 964a99fe2fb1 |
files | s4-funcs.sh |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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