From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: sendmail-program with msmtpq Date: Mon, 12 Nov 2018 05:41:04 +0200 Message-ID: <837ehj9d4f.fsf@gnu.org> References: NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1541993980 7416 195.159.176.226 (12 Nov 2018 03:39:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 12 Nov 2018 03:39:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 12 04:39:36 2018 Return-path: Envelope-to: geh-help-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 1gM34Z-0001nJ-3i for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Nov 2018 04:39:35 +0100 Original-Received: from localhost ([::1]:44633 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gM36f-0001Pv-F0 for geh-help-gnu-emacs@m.gmane.org; Sun, 11 Nov 2018 22:41:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gM36B-0001Pf-Dn for help-gnu-emacs@gnu.org; Sun, 11 Nov 2018 22:41:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gM36A-0006Yr-Gx for help-gnu-emacs@gnu.org; Sun, 11 Nov 2018 22:41:15 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:32959) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gM36A-0006YO-Cc for help-gnu-emacs@gnu.org; Sun, 11 Nov 2018 22:41:14 -0500 Original-Received: from [176.228.60.248] (port=2171 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gM369-0005Mw-3V for help-gnu-emacs@gnu.org; Sun, 11 Nov 2018 22:41:14 -0500 In-reply-to: (message from Xavier Maillard on Sun, 11 Nov 2018 23:00:36 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:118648 Archived-At: > Date: Sun, 11 Nov 2018 23:00:36 +0100 > From: Xavier Maillard > > My goal with this setup is to queue my outgoing messages when I am not > connected. There is something wrong at some point; when unplugged, > msmtpq is doing the right thing: it queues the outgoing message but `sendmail-send-it' would consider it as unsent. > > Here is the log: > > [2018-11-10 08:12:02.017] Sending... > Added to /home/xavier/.cache/mail/sent > sendmail-send-it: Sending...failed to mail for [ -oi -f xavier@maillard.im -oep -odi -t ] : couldn't be sent - host not connected; enqueued mail as : [ 2018-11-10-08.12.02 ] ( -oi -f xavier@maillard.im -oep -odi -t ) : successful; > > Due to that behaviour, calling C-x m again is just asking if I want to erase the *mail* buffer instead of creating a new one. > > What's wrong ? I suspect that your program exits with non-zero exit status in this case, but I cannot be sure because you don't seem to show the entire message. sendmail-send-it expects a successful sending to exit with zero status.