GNU bug report logs - #25040
24.5; setting mail-interactive to nil causes error while sending

Previous Next

Package: emacs;

Reported by: Francesco Potortì <pot <at> gnu.org>

Date: Sun, 27 Nov 2016 00:23:02 UTC

Severity: normal

Merged with 20211, 21388

Found in versions 24.4, 24.4.50, 24.5

Fixed in version 25.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Noam Postavsky <npostavs <at> users.sourceforge.net>
To: Francesco Potortì <pot <at> gnu.org>
Cc: 25040 <at> debbugs.gnu.org
Subject: Re: bug#25040: 24.5; setting mail-interactive to nil causes error
 while sending
Date: Sat, 26 Nov 2016 19:39:18 -0500
On Sat, Nov 26, 2016 at 7:21 PM, Francesco Potortì <pot <at> gnu.org> wrote:
> In sendmail.el I find this:
>
> ================
> (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))
> ================
>
> 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’t wait




This bug report was last modified 8 years and 175 days ago.

Previous Next


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