From: "Basil L. Contovounesios" <contovob@tcd.ie>
To: Emmanuel Boudreault <emmanuel.boudreault@polymtl.ca>,
Eric Abrahamsen <eric@ericabrahamsen.net>
Cc: 29427@debbugs.gnu.org
Subject: bug#29427: Problem sending emails in message-mode after restart
Date: Sun, 26 Nov 2017 15:21:47 +0000 [thread overview]
Message-ID: <87o9npkqus.fsf@gmail.com> (raw)
In-Reply-To: <87lgivfyl5.fsf@soma.i-did-not-set--mail-host-address--so-tickle-me>
[-- Attachment #1: Type: text/plain, Size: 382 bytes --]
Emmanuel - I am forwarding your email, which follows my
signature, to the bug report's address. Unless sending a
private message, in the future please include
<29427@debbugs.gnu.org> as a recipient.
Eric - I lack experience in mailing list etiquette, so if
forwarding wasn't the best mechanism for me to use here
please let me know what to do in the future.
Thanks,
--
Basil
[-- Attachment #2: Type: message/rfc822, Size: 11636 bytes --]
From: Emmanuel Boudreault <emmanuel.boudreault@polymtl.ca>
To: "Basil L. Contovounesios" <contovob@tcd.ie>
Subject: Re: bug#29427: Problem sending emails in message-mode after restart
Date: Sun, 26 Nov 2017 08:20:40 +0100
Message-ID: <87d145ecaf.fsf@soma.i-did-not-set--mail-host-address--so-tickle-me>
>>> When I first send an e-mail in emacs, 'send-mail-function'
>>> isn't defined [...]
>>
>> I'm not sure how `send-mail-function' comes into it, and am a bit
>> confused by your report: you say when you first send an email in emacs,
>> it isn't set, but later say when you restart emacs, it is defined.
Once I send an e-mail from 'sendmail-query-once', 'send-mail-function'
is set to 'sendmail-send-it' in my config file by the
'sendmail-query-once' process. Things then work until I restart emacs.
After restarting emacs, message-mode tries to incorrectly guess the
'From' field of my e-mail even though it is already present.
> Actually Emmanuel is saying the opposite, namely that
> `send-mail-function' is somehow undefined until restarting
> Emacs. My issue with this is that `send-mail-function'
> should always be defined as either `sendmail-send-it' or
> `sendmail-query-once' when starting Emacs with the -Q flag,
> in all versions of Emacs until at least as far back as 23.
> Perhaps some custom configuration code or package is
> misbehaving?
I'm sorry, I misspoke, I meant that I'm not defining
'send-mail-function' in my config file. I just checked and it is indeed
set to 'sendmail-query-once' when not set in my config file.
>> Anyway, if you're using something based on message-mode, you should
>> probably just set `message-send-mail-function' directly.
>
> +1
So this is my problem, when 'send-mail-function' is set to
'sendmail-send-it' or when 'message-send-mail-function' is set to
'message-send-mail-with-sendmail', somewhere in the message mode, the
code tries to guess my From and sets it incorrectly event though there
is already a valid from in the message.
To get things to work, I have to remove those settings set by
'sendmail-query-once' from my config file and restart emacs. Things then
work for that session.
Sorry for my bad initial explanation.
Thanks,
Emmanuel
next prev parent reply other threads:[~2017-11-26 15:21 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 [this message]
2017-11-26 19:33 ` Emmanuel Boudreault
2017-11-27 1:37 ` Glenn Morris
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=87o9npkqus.fsf@gmail.com \
--to=contovob@tcd.ie \
--cc=29427@debbugs.gnu.org \
--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).