comparison s4-funcs.sh @ 694:c45ab714d68e

To: header for email-sender contains all recipients
author HIROSE Yuuji <yuuji@gentei.org>
date Tue, 19 May 2020 11:49:11 +0900
parents 5f3e94a9b7b3
children 5cf0ba49aeab
comparison
equal deleted inserted replaced
693:5f3e94a9b7b3 694:c45ab714d68e
2700 ---------------------------------------------------------- 2700 ----------------------------------------------------------
2701 EOF 2701 EOF
2702 ) 2702 )
2703 fi 2703 fi
2704 rcpts="`email4groupbyuid "$grp" $usel` $fromad$supprcpt" 2704 rcpts="`email4groupbyuid "$grp" $usel` $fromad$supprcpt"
2705 rcpts=`echo $rcpts|tr ' ' '\n'|sort|uniq` 2705 rcpts=`echo $rcpts|tr ' ' '\n'|sort|uniq|tr '\n' ' '`
2706 subj="${subj:-$gecos さんからのメッセージ}" 2706 subj="${subj:-$gecos さんからのメッセージ}"
2707 REPLYTO=$replyto 2707 REPLYTO=$replyto
2708 MAIL_FROM=$mail_from 2708 MAIL_FROM=$mail_from
2709 export REPLYTO SMAIL_TO MAIL_FROM 2709 export REPLYTO SMAIL_TO MAIL_FROM
2710 err "GrpActionSend: user=[$user], MAIL_FROM=[$mail_from], rcpts=[$rcpts], REPLYTO=[$replyto}" 2710 err "GrpActionSend: user=[$user], MAIL_FROM=[$mail_from], rcpts=[$rcpts], REPLYTO=[$replyto}"
2711 for r in $rcpts; do 2711 for r in $rcpts; do
2712 SMAIL_TO="$r $user $fromad" 2712 if [ x"$user" = x"$r" -o x"$fromad" = x"$r" ]; then
2713 SMAIL_TO=$rcpts # Show all rcpts to sender oneself
2714 else
2715 # Show sender and rcpts address for guest
2716 SMAIL_TO=`echo $r $user $fromad|tr ' ' '\n'|sort -u|tr '\n' ' '`
2717 fi
2713 if [ -n "$afiles" ];then 2718 if [ -n "$afiles" ];then
2714 ./sendmultipart.sh -t "$r" -s "$subj" -f "$mail_from" $afiles 2719 ./sendmultipart.sh -t "$r" -s "$subj" -f "$mail_from" $afiles
2715 else 2720 else
2716 smail "$r" "$subj" 2721 smail "$r" "$subj"
2717 fi <<EOF 2722 fi <<EOF

yatex.org