From owner-freebsd-doc Sat Feb 26 14:40: 6 2000 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 7114837BE9F for ; Sat, 26 Feb 2000 14:40:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id OAA95776; Sat, 26 Feb 2000 14:40:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from nscache2.x-treme.gr (mail1.x-treme.gr [212.120.196.23]) by hub.freebsd.org (Postfix) with ESMTP id 7622637B596 for ; 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 ; 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 X-Send-Pr-Version: 3.2 Subject: docs/17014: send-pr MAIL_AGENT is unconditionally set Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 17014 >Category: docs >Synopsis: send-pr sets MAIL_AGENT unconditionally >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Feb 26 14:40:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Giorgos Keramidas >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message