From keramida@ceid.upatras.gr  Sat Feb 26 14:30:56 2000
Return-Path: <keramida@ceid.upatras.gr>
Received: from nscache2.x-treme.gr (mail1.x-treme.gr [212.120.196.23])
	by hub.freebsd.org (Postfix) with ESMTP id 7622637B596
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 26 Feb 2000 14:30:44 -0800 (PST)
	(envelope-from keramida@ceid.upatras.gr)
Received: from hades.hell.gr (pat58.x-treme.gr [212.120.197.250])
	by nscache2.x-treme.gr (8.9.3/8.9.3/IPNG-ADV-ANTISPAM-0.1) with ESMTP id AAA01579
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 27 Feb 2000 00:30:24 +0200
Received: by hades.hell.gr (Postfix, from userid 1001)
	id 236EEDD287; Sat, 26 Feb 2000 23:37:16 +0200 (EET)
Message-Id: <20000226213716.236EEDD287@hades.hell.gr>
Date: Sat, 26 Feb 2000 23:37:16 +0200 (EET)
From: keramida@ceid.upatras.gr
Reply-To: keramida@ceid.upatras.gr
To: FreeBSD-gnats-submit@freebsd.org
Subject: send-pr MAIL_AGENT is unconditionally set
X-Send-Pr-Version: 3.2

>Number:         17014
>Category:       docs
>Synopsis:       send-pr sets MAIL_AGENT unconditionally
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 26 14:40:01 PST 2000
>Closed-Date:    Sun Apr 30 15:45:44 PDT 2000
>Last-Modified:  Sun Apr 30 15:48:46 PDT 2000
>Originator:     Giorgos Keramidas <keramida@ceid.upatras.gr>
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
>Environment:

	The send-pr.sh script of Feb 23, 2000.

>Description:

	The send-pr shell script sets MAIL_AGENT unconditionally.  On
	systems with dialup access, where sendmail might require some
	custom invocation command line, this fails to use the default
	value of MAIL_AGENT for the user who runs it.

>How-To-Repeat:

	You can see the relevant command in the installed version of
	send-pr.sh script, by running:

	    grep MAIL_AGENT `which send-pr`

	By changing MAIL_AGENT=".." to MAIL_AGENT="${MAIL_AGENT:-..}"
	any existing value of MAIL_AGENT is preserved.

>Fix:

--- send-pr.sh.orig	Thu Sep  2 15:00:49 1999
+++ send-pr.sh	Sat Feb 26 05:20:33 2000
@@ -56,7 +56,7 @@
 
 # What mailer to use.  This must come after the config file, since it is
 # host-dependent.
-MAIL_AGENT="/usr/sbin/sendmail -oi -t"
+MAIL_AGENT="${MAIL_AGENT:-/usr/sbin/sendmail -oi -t}"
 
 ECHON=bsd
 

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: nik 
State-Changed-When: Sun Apr 30 15:45:44 PDT 2000 
State-Changed-Why:  
Committed.  Thanks. 
>Unformatted:
