From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.devel Subject: Re: sendmail.el bug or expected behavior? Date: Tue, 20 Jan 2004 12:53:11 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <877jzn2lk8.fsf@raven.i.defaultvalue.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1074600699 4424 80.91.224.253 (20 Jan 2004 12:11:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Jan 2004 12:11:39 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Jan 20 13:11:31 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AiujD-00032k-00 for ; Tue, 20 Jan 2004 13:11:31 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AiujC-00016v-00 for ; Tue, 20 Jan 2004 13:11:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Aiugn-0005FL-SC for emacs-devel@quimby.gnus.org; Tue, 20 Jan 2004 07:09:01 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AiuYN-0002qO-3X for emacs-devel@gnu.org; Tue, 20 Jan 2004 07:00:19 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AiuXo-0002eV-Tq for emacs-devel@gnu.org; Tue, 20 Jan 2004 07:00:16 -0500 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AiuRq-0000yZ-BL for emacs-devel@gnu.org; Tue, 20 Jan 2004 06:53:34 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AiuRp-0005Jq-00 for ; Tue, 20 Jan 2004 12:53:33 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AiuRn-0005Ji-00 for ; Tue, 20 Jan 2004 12:53:31 +0100 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AiuRn-0000TT-00 for ; Tue, 20 Jan 2004 12:53:31 +0100 Original-Lines: 38 Original-X-Complaints-To: usenet@sea.gmane.org User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:ieG9/I1rCtQcHiBKgaxiFDaiueQ= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:19330 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19330 Rob Browning writes: > Emacs doesn't always check for a non-zero exit status from sendmail, > which can lead to silent mail lossage. For example: > > emacs21 -q > [in the *scratch* buffer] > (setq sendmail-program "/bin/false") C-j > M-x vm-mail RET > check that sendmail-program has right value with C-h v > fill in a short test message > C-c C-c > emacs says `Sending...done' > (no mail has been sent, of course) > > Although from reading mail-interactive's description, I wasn't sure if > this behavior was a bug or intentional: > > mail-interactive's value is nil > Documentation: *Non-nil means when sending a message wait for and > display errors. nil means let mailer mail back a message to report > errors. It is intentional. I'm not sure it is a good idea, but it has been discussed before. > If this isn't just expected behavior, then someone suggested this as a > fix: I think the proper fix is to change the default value of `mail-interactive' to t instead, but I'm not sure there is agreement to do that. If you don't like the default behaviour of silently ignoring exit codes, you can customize the variable as well, no need to patch the code. IIRC, the motivation for this is that waiting for /usr/sbin/sendmail to exit, and thus return an exit code, can take hours with some MTAs if there is no network connectivity.