From d@scry.dstc.edu.au  Wed Aug  7 00:24:19 1996
Received: from trapdoor.dstc.edu.au (root@trapdoor.dstc.edu.au [130.102.176.12])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id AAA21607
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 7 Aug 1996 00:24:17 -0700 (PDT)
Received: from scry.dstc.edu.au (scry.dstc.edu.au [130.102.176.222]) by trapdoor.dstc.edu.au (8.6.9/8.6.12) with ESMTP id RAA02621 for <FreeBSD-gnats-submit@freebsd.org>; Wed, 7 Aug 1996 17:24:13 +1000
Received: (from d@localhost) by scry.dstc.edu.au (8.6.12/8.6.12) id RAA12062; Wed, 7 Aug 1996 17:25:37 +1000
Message-Id: <199608070725.RAA12062@scry.dstc.edu.au>
Date: Wed, 7 Aug 1996 17:25:37 +1000
From: David Leonard <d@scry.dstc.edu.au>
Reply-To: leonard@dstc.edu.au
To: FreeBSD-gnats-submit@freebsd.org
Subject: send-pr could have a configurable Reply-To field
X-Send-Pr-Version: 3.2

>Number:         1472
>Category:       gnu
>Synopsis:       send-pr could have a configurable Reply-To field
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug  7 00:30:02 PDT 1996
>Closed-Date:    Sat Oct 19 23:48:30 MET DST 1996
>Last-Modified:  Sat Oct 19 23:50:29 MET DST 1996
>Originator:     David Leonard
>Release:        FreeBSD 2.1-STABLE i386
>Organization:
DSTC, Brisbane, Australia  +61 7 3365 4310
>Environment:

FreeBSD scry.dstc.edu.au 2.2-CURRENT FreeBSD 2.2-CURRENT #2: Fri Jul 26 17:14:34
 EST 1996     d@scry.dstc.edu.au:/u2/src/freebsd/sys/sys/compile/SCRY  i386

>Description:

        send-pr would be nicer with a configurable Reply-To field

>How-To-Repeat:

        Because I have different username on the mailhost for this site,
        i have to put a reply-to on all my mail. thats fine. send-pr
        assumes that your LOGNAME is your reply-to address.

>Fix:

patch below
or you way want to have the REPLY_TO envvar take precedence over
the dotfile

*** gnu/usr.bin/send-pr/send-pr.sh.orig	Wed Aug  7 17:15:25 1996
--- gnu/usr.bin/send-pr/send-pr.sh	Wed Aug  7 17:17:58 1996
***************
*** 81,87 ****
  fi
  
  FROM="$LOGNAME"
! REPLY_TO="$LOGNAME"
  
  # Find out the name of the originator of this PR.
  if [ -n "$NAME" ]; then
--- 81,91 ----
  fi
  
  FROM="$LOGNAME"
! if [ -f $HOME/.reply-to ]; then
!   REPLY_TO="`sed -e '1q' $HOME/.reply-to`"
! elif [ -z "$REPLY_TO" ]; then
!   REPLY_TO="$LOGNAME"
! fi
  
  # Find out the name of the originator of this PR.
  if [ -n "$NAME" ]; then

>Release-Note:
>Audit-Trail:

From: J Wunsch <j@uriah.heep.sax.de>
To: leonard@dstc.edu.au
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: gnu/1472: send-pr could have a configurable Reply-To field
Date: Thu, 8 Aug 1996 08:28:59 +0200 (MET DST)

 As David Leonard wrote:
 
 >   FROM="$LOGNAME"
 > ! if [ -f $HOME/.reply-to ]; then
 > !   REPLY_TO="`sed -e '1q' $HOME/.reply-to`"
 > ! elif [ -z "$REPLY_TO" ]; then
 > !   REPLY_TO="$LOGNAME"
 > ! fi
 
 I thought the silent convention is to use the environmental variable
 ${REPLYTO} for this purpose?
 
 Many mailers and newsreaders do it this way, using a gratuitously
 different method (~/.reply-to) is IMHO wrong.
 
 -- 
 cheers, J"org
 
 joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
 Never trust an operating system you don't have sources for. ;-)
State-Changed-From-To: open->closed 
State-Changed-By: joerg 
State-Changed-When: Sat Oct 19 23:48:30 MET DST 1996 
State-Changed-Why:  
Fixed in rev 1.6 of send-pr.sh.  REPLY_TO or REPLYTO from the 
environment now get precedence over LOGNAME for the Reply-To 
address. 

The domainname will be added by the mail transport if necessary, btw. 

PRs 1472 and 1823 were basically dup's for 1471. 

>Unformatted:
 
