From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#56855: 27.1; sendmail-send-it considers it an error if sendmail wrote to stdout/stderr Date: Tue, 02 Aug 2022 12:44:08 +0200 Message-ID: <87h72vylfr.fsf@gnus.org> References: <87wnbtig4z.fsf@thinkbox> <87o7x34rqg.fsf@rfc20.org> <875yjbi3th.fsf@thinkbox> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38184"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Matt Armstrong , 56855@debbugs.gnu.org To: Justus Winter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 02 12:45:18 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oIpOn-0009eo-JM for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Aug 2022 12:45:17 +0200 Original-Received: from localhost ([::1]:60918 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oIpOm-0002Jd-G9 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Aug 2022 06:45:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIpOY-0002FI-Kh for bug-gnu-emacs@gnu.org; Tue, 02 Aug 2022 06:45:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52716) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oIpOY-0006Zl-B9 for bug-gnu-emacs@gnu.org; Tue, 02 Aug 2022 06:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oIpOY-0005Te-6s for bug-gnu-emacs@gnu.org; Tue, 02 Aug 2022 06:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Aug 2022 10:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56855 X-GNU-PR-Package: emacs Original-Received: via spool by 56855-submit@debbugs.gnu.org id=B56855.165943706020963 (code B ref 56855); Tue, 02 Aug 2022 10:45:02 +0000 Original-Received: (at 56855) by debbugs.gnu.org; 2 Aug 2022 10:44:20 +0000 Original-Received: from localhost ([127.0.0.1]:42462 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oIpNs-0005S3-2c for submit@debbugs.gnu.org; Tue, 02 Aug 2022 06:44:20 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:55870) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oIpNq-0005Ro-1q for 56855@debbugs.gnu.org; Tue, 02 Aug 2022 06:44:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=17G5Utou2juXnD2C9eujkE8yCX3ojJeASP+RPMJMBKY=; b=IvaEb0TPGvMGPJKbJaH97t77tj YYGi40aHeL1btIonS9W+qXdIpaq1iFxIhF3vzZW59PACIa2Gws1db/5Qn9YODxtfUU+uMxyeyV+8H B6H+GYEOlI1GQkysDWRowKYnvNF45by+aaTr7LsgaGBbnFl2oB0yd4ZhqOIPMngXWoLo=; Original-Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oIpNg-0007Q5-K4; Tue, 02 Aug 2022 12:44:10 +0200 In-Reply-To: <875yjbi3th.fsf@thinkbox> (Justus Winter's message of "Tue, 02 Aug 2022 07:59:06 +0200") X-Now-Playing: Thick Pigeon's _Too Crazy Cowboys_: "Babcock + Wilcox" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:238512 Archived-At: Justus Winter writes: > In fact, I think we should ask what the best thing is for the user. I > think that (a) emacs should correctly indicate whether sending the mail > succeeded or not, and (b) any warnings should be presented to the user. Your argument makes sense, but there's a lot of systems out there, and there's a lot of different things people use in place of `sendmail-program'. Emacs' contract with the user here has been (for 35 years) to consider any output from these programs as an error condition, and changing that will inevitably lead to people losing mail, because they're using that contract. As a practical matter, accepting a SUCCESS exit code as a success, but then showing the extra text isn't much friendlier than signalling an error -- users don't want to see warnings every time they send a mail, so they'll have to fix whatever program they're using for `sendmail-program'. So I think the fix here is to just document that output is considered failure, and I've now done this in Emacs 29, and is therefore closing this bug report.