all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Xavier Maillard <xavier@maillard.im>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: sendmail-program with msmtpq
Date: Mon, 12 Nov 2018 06:11:53 +0100	[thread overview]
Message-ID: <E1gM4Vs-0007gx-IA@eggs.gnu.org> (raw)
In-Reply-To: <837ehj9d4f.fsf@gnu.org> (message from Eli Zaretskii on Mon, 12 Nov 2018 05:41:04 +0200)

Hello Eli,

> Date: Mon, 12 Nov 2018 05:41:04 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> 
> > Date: Sun, 11 Nov 2018 23:00:36 +0100
> > From: Xavier Maillard <xavier@maillard.im>
> > 
> > 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.

Here is a test from the command line:

# With connection ON
$ cat /tmp/test-mail | ~/bin/msmtpq xavier@maillard.im
  mail for [ xavier@maillard.im ] : send was successful

$ echo $?
0

# With connection OFF
$ cat /tmp/test-mail | ~/bin/msmtpq xavier@maillard.im
  mail for [ xavier@maillard.im ] : couldn't be sent - host not connected
    enqueued mail as : [ 2018-11-12-06.05.45 ] ( xavier@maillard.im ) : successful

$ echo $?
0

> sendmail-send-it expects a successful sending to exit with zero
> status.

As far as I can see, it should be ok. Does sendmail-send-it expect a message or something like that ?

Thank you.
--
Xavier



  reply	other threads:[~2018-11-12  5:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-11 22:00 sendmail-program with msmtpq Xavier Maillard
2018-11-12  3:41 ` Eli Zaretskii
2018-11-12  5:11   ` Xavier Maillard [this message]
2018-11-12  5:22     ` Xavier Maillard
2018-11-12 15:44       ` Eli Zaretskii
2018-11-12 20:54         ` sendmail-program with msmtpq [SOLVED] Xavier Maillard
2018-11-12 23:10           ` Eric Abrahamsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1gM4Vs-0007gx-IA@eggs.gnu.org \
    --to=xavier@maillard.im \
    --cc=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.