Mercurial > hgrepos > hgweb.cgi > s4
changeset 575:618ecf019115
From: address should be one in smail
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Sat, 25 May 2019 22:28:16 +0900 |
parents | e4e207222ee9 |
children | c81511a6b7e0 |
files | s4-funcs.sh |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/s4-funcs.sh Wed May 01 21:43:31 2019 +0900 +++ b/s4-funcs.sh Sat May 25 22:28:16 2019 +0900 @@ -2479,7 +2479,7 @@ if [ x"$mkfrom" = x"yes" ]; then safegc=`echo "$gecos" | tr -d '<>@'` myuid=`query "SELECT rowid FROM user WHERE name='$user';"` - fromad=`email4groupbyuid "$grp" "$myuid"` + fromad=`email4groupbyuid "$grp" "$myuid" | sed -e 1q -e 's/[ ,].*//'` mail_from="$safegc <$fromad>" else mail_from="$admin"