From 57ad69d7f725223a2e1db61da38bfaae194ad711 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Wed, 20 Dec 2006 07:22:23 +0000 Subject: [PATCH] Defer call to OS/SENDMAIL-PROGRAM until mail is to be sent. Otherwise it is run when Edwin is built, and will probably be incorrect for the target system. --- v7/src/edwin/sendmail.scm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/v7/src/edwin/sendmail.scm b/v7/src/edwin/sendmail.scm index 3af2eabed..6228673d7 100644 --- a/v7/src/edwin/sendmail.scm +++ b/v7/src/edwin/sendmail.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: sendmail.scm,v 1.87 2006/06/12 04:19:43 cph Exp $ +$Id: sendmail.scm,v 1.88 2006/12/20 07:22:23 cph Exp $ Copyright 1991,1992,1993,1994,1995,1996 Massachusetts Institute of Technology Copyright 1997,1998,2000,2001,2003,2004 Massachusetts Institute of Technology @@ -150,8 +150,8 @@ is ignored." (define-variable sendmail-program "Filename of sendmail program." - (os/sendmail-program) - string?) + #f + string-or-false?) (define-variable send-mail-procedure "Procedure to call to send the current buffer as mail. @@ -862,7 +862,9 @@ the user from the mailer." (define (send-mail-using-sendmail message-pathname lookup-context) (message "Sending...") - (let ((program (ref-variable sendmail-program lookup-context))) + (let ((program + (or (ref-variable sendmail-program lookup-context) + (os/sendmail-program)))) (if (ref-variable mail-interactive lookup-context) (call-with-temporary-buffer " sendmail errors" (lambda (error-buffer) -- 2.25.1