Date: Sun, 9 Dec 2001 23:27:47 -0500 (EST) From: Alan E <alane@geeksrus.net> To: FreeBSD-gnats-submit@freebsd.org Subject: gnu/32661: send-pr uses $LOGNAME for From and Reply To email addresses Message-ID: <200112100427.fBA4Rlg79885@wwweasel.geeksrus.net>
next in thread | raw e-mail | index | archive | help
>Number: 32661 >Category: gnu >Synopsis: send-pr uses $LOGNAME for From and Reply To email addresses >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Dec 09 20:30:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Alan E >Release: FreeBSD 4.4-STABLE i386 >Organization: Geeksrus.NET >Environment: System: FreeBSD wwweasel.geeksrus.net 4.4-STABLE FreeBSD 4.4-STABLE #0: Sun Dec 2 19:14:12 EST 2001 root@wwweasel.geeksrus.net:/usr/obj/usr/src/sys/WWWEASEL i386 >Description: Send-pr uses $LOGNAME as email address. Patch uses $MAILNAME, then $(<~/.mailname), then $LOGNAME. >How-To-Repeat: Run send-pr. Look at names in <angle-brackets> on From and Reply To lines. >Fix: ---8<-snip---8<-snip---8<-snip---8<-snip---8<-snip---8<-snip---8<--- --- send-pr.sh.orig Sun Nov 4 19:27:21 2001 +++ send-pr.sh Sun Dec 9 23:17:52 2001 @@ -99,8 +99,17 @@ rm -f $PTEMP fi -FROM="$ORIGINATOR <$LOGNAME>" -REPLY_TO="$ORIGINATOR <${REPLY_TO:-${REPLYTO:-$LOGNAME}}>" +# Try to find out originator's email address. +if [ -n "$MAILNAME" ]; then + true +elif [ -f $HOME/.mailname ]; then + MAILNAME="`sed -e '1q' $HOME/.mailname`" +else + MAILNAME="$LOGNAME" +fi + +FROM="$ORIGINATOR <$MAILNAME>" +REPLY_TO="$ORIGINATOR <${REPLY_TO:-${REPLYTO:-$MAILNAME}}>" if [ -n "$ORGANIZATION" ]; then if [ -f "$ORGANIZATION" ]; then ---8<-snip---8<-snip---8<-snip---8<-snip---8<-snip---8<-snip---8<--- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112100427.fBA4Rlg79885>