GNU bug report logs - #56855
27.1; sendmail-send-it considers it an error if sendmail wrote to stdout/stderr

Previous Next

Package: emacs;

Reported by: Justus Winter <justus <at> sequoia-pgp.org>

Date: Sun, 31 Jul 2022 13:09:01 UTC

Severity: normal

Found in version 27.1

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 56855 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Justus Winter <justus <at> sequoia-pgp.org>
Cc: Matt Armstrong <matt <at> rfc20.org>, 56855 <at> debbugs.gnu.org
Subject: Re: 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
Justus Winter <justus <at> sequoia-pgp.org> 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.





This bug report was last modified 2 years and 297 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.