unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: Emmanuel Boudreault <emmanuel.boudreault@polymtl.ca>
Cc: "Basil L. Contovounesios" <contovob@tcd.ie>,
	Eric Abrahamsen <eric@ericabrahamsen.net>,
	29427@debbugs.gnu.org
Subject: bug#29427: Problem sending emails in message-mode after restart
Date: Sun, 26 Nov 2017 20:37:58 -0500	[thread overview]
Message-ID: <1ga7z8v6vd.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <87tvxgesww.fsf@soma.i-did-not-set--mail-host-address--so-tickle-me> (Emmanuel Boudreault's message of "Sun, 26 Nov 2017 20:33:51 +0100")

Emmanuel Boudreault wrote:

> By setting 'message-sendmail-f-is-evil', I can bypass this bit of code
> and everything works as expected. However, this is just a workaround
> and doesn't correct the fact that emacs is reading the From field
> incorrectly.

So basically your issue is that your envelope-from isn't being set
correctly, because your system doesn't have a configured mail-host-address.

(setq message-sendmail-envelope-from 'header)

would presumably fix your problem as well, and might be a more sensible
default these days.

Related observations:

sendmail-send-it (which is what you selected by choosing "transport")
doesn't pass -f to sendmail by default. However, message.el uses its own
message-send-mail-with-sendmail instead, and this does pass -f by
default. This seems like a confusing difference, as well as a confusing
duplication of code (but that's message.el for you).

I would guess that you got sendmail-send-it the first time, then
message-send-mail-with-sendmail on all future invocations, owing to how
the variable message-send-mail-function gets initialized.

It all seems Very Complicated.





  reply	other threads:[~2017-11-27  1:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-24 16:09 bug#29427: Problem sending emails in message-mode after restart Emmanuel Boudreault
2017-11-24 18:33 ` Eric Abrahamsen
2017-11-25 17:19   ` Basil L. Contovounesios
2017-11-26 15:21 ` Basil L. Contovounesios
2017-11-26 19:33   ` Emmanuel Boudreault
2017-11-27  1:37     ` Glenn Morris [this message]
2017-11-27 23:08       ` Eric Abrahamsen
2019-09-22 23:13         ` Lars Ingebrigtsen
2019-05-13 21:11       ` Lars Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=1ga7z8v6vd.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=29427@debbugs.gnu.org \
    --cc=contovob@tcd.ie \
    --cc=emmanuel.boudreault@polymtl.ca \
    --cc=eric@ericabrahamsen.net \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).