From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#25040: 24.5; setting mail-interactive to nil causes error while sending Date: Sat, 26 Nov 2016 19:39:18 -0500 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1480207216 23644 195.159.176.226 (27 Nov 2016 00:40:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 27 Nov 2016 00:40:16 +0000 (UTC) Cc: 25040@debbugs.gnu.org To: Francesco =?UTF-8?Q?Potort=C3=AC?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 27 01:40:08 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cAnVn-0004xo-QY for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Nov 2016 01:40:07 +0100 Original-Received: from localhost ([::1]:52219 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cAnVr-0004Hh-B3 for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Nov 2016 19:40:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cAnVl-0004GY-5o for bug-gnu-emacs@gnu.org; Sat, 26 Nov 2016 19:40:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cAnVi-0003w4-21 for bug-gnu-emacs@gnu.org; Sat, 26 Nov 2016 19:40:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55601) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cAnVh-0003vy-UO for bug-gnu-emacs@gnu.org; Sat, 26 Nov 2016 19:40:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cAnVh-000890-HY for bug-gnu-emacs@gnu.org; Sat, 26 Nov 2016 19:40:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Nov 2016 00:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25040 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25040-submit@debbugs.gnu.org id=B25040.148020716631261 (code B ref 25040); Sun, 27 Nov 2016 00:40:01 +0000 Original-Received: (at 25040) by debbugs.gnu.org; 27 Nov 2016 00:39:26 +0000 Original-Received: from localhost ([127.0.0.1]:42767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cAnV8-000889-Gs for submit@debbugs.gnu.org; Sat, 26 Nov 2016 19:39:26 -0500 Original-Received: from mail-oi0-f43.google.com ([209.85.218.43]:34988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cAnV6-00087w-PF for 25040@debbugs.gnu.org; Sat, 26 Nov 2016 19:39:25 -0500 Original-Received: by mail-oi0-f43.google.com with SMTP id b126so115458669oia.2 for <25040@debbugs.gnu.org>; Sat, 26 Nov 2016 16:39:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=JNASxzfuY3YQvHttWwRZU+em4GycLCW8y9SxTWqGMRE=; b=dDcZmwQD+PNrUmj0wN5aIJM2HNewc1YqRyOJsMLPhAIYWfKvqHwiAvFrEmAnJ0DMCA eM5p5dvJXUz8gZKKMATtGQmb70FVwu4AFdupz1EenneCi7LLCf+JaZFFlzxF+iOJtwPy O10sM9jJCsVbdn+02Sr1IsBj5ucx2cw1L4V2Po2Gn/UsL10QGtSJE5cPJeZHSgOTKfb/ DCXT5xjUWAStciTR2GjF4E5QPiDn4ZYn2r8GoxA2DEaMIV7Nlw52n045nvucgsxCZB0t 8KVBDipjrvacyxci+QX7DukuIbkmOUeiN0LWei6Mz6SUURe+AM0bYyMwDFGwHUGbmLr0 3pwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=JNASxzfuY3YQvHttWwRZU+em4GycLCW8y9SxTWqGMRE=; b=YicRAH72J8lXaQJV68Lld7iQEydiz+cGCisZtAZpYAS2quv5Q4SJmZfiMZ4TMeZvee bvqgEuFzTa+7B5alqOr7in0EgD3iLXWk0Y4dYZiLI20SPRUDoBZ2D0GJjwgMZ7wKLUu/ CBG7LSHkI8V9wDABqDJWFCd+lFmAbo0Gz2aJ+pi5eP+hO0gKWUbfD6quYJIz1tzFWoHN Y+NqNSV3fzlaPjCFT7viVnBDt/3Qsywl86S5dcONhr0FcM8jCaoEl+QeHUZV+bBcp+tx ceHWedsL3aaR0bWf/iS2xqkI3IltW1QUGfIgbahksmZKsedAs7VOK+svU39ciYFIk2W0 mAVg== X-Gm-Message-State: AKaTC00BInHp53UGManlSxISEFBP76lYL/ul9tJnoLpGSSzbyMt9ZtyxE//Ye6vEj2y2XZ5JwGN3bHrtq7Tj0A== X-Received: by 10.157.17.89 with SMTP id p25mr9389155otp.239.1480207159071; Sat, 26 Nov 2016 16:39:19 -0800 (PST) Original-Received: by 10.157.4.67 with HTTP; Sat, 26 Nov 2016 16:39:18 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: rKom5fwg_pBvp1SvpJqY0AMF9Cc X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:126140 Archived-At: On Sat, Nov 26, 2016 at 7:21 PM, Francesco Potort=C3=AC wrote= : > In sendmail.el I find this: > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > (defun sendmail-send-it () > "Send the current mail buffer using the Sendmail package. > This is a suitable value for `send-mail-function'. It sends using the > external program defined by `sendmail-program'." > (require 'mail-utils) > (let ((errbuf (if mail-interactive > (generate-new-buffer " sendmail errors") > 0)) > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > However, the final 0 makes no sense to me, and in fact it generates an > error when sending mail if mail-interactive is set to nil. > > Changing the 0 to nil apparently corrects the problem. Can you show the error backtrace? It looks like errbuf is unused when mail-interactive is nil except for the call to call-process-region where it acts as the BUFFER argument Insert output in BUFFER before point; t means current buffer; nil for BUFFER means discard it; 0 means discard and don=E2=80=99t wait